New project compilation error

General discussion on mikroC.
Post Reply
Author
Message
ChristianG
Posts: 12
Joined: 14 Aug 2017 12:12

New project compilation error

#1 Post by ChristianG » 18 Aug 2017 19:43

Hello,

I have a problem when I create a new project. I follow the new project wizard:

1.Standard project
2.Set the CPU and frequency (P32MZ2048ECH124, 200MHz).
3.Add NO files to the project.
4.Include all libraries, this is set as default.

The only code in the project is:

Code: Select all

void main() {
}
When I compile I get the following errors:

4622 355 Redefinition of 'malloc [__Lib_dlmalloc.c] malloc' already defined in '__Lib_MemManager.c' __Lib_dlmalloc.c
4760 355 Redefinition of 'free [__Lib_dlmalloc.c] free' already defined in '__Lib_MemManager.c' __Lib_dlmalloc.c

If I unselect the Memory_manager_dmalloc, or the Memmanager library, the compilation works. There seems to be some sort of collision between the two libraries that are chosen by default when a new project is created. Not sure if this is a bug or not.

Best regards,
Christian G.

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: New project compilation error

#2 Post by lana.arsic » 21 Aug 2017 10:46

Hi Christian,

I'm sorry because of this inconvenience,
please only select libraries which you will need
in your project, not all of them.

Kind regards,
Lana

Post Reply

Return to “mikroC General”