Page 1 of 1

New project compilation error

Posted: 18 Aug 2017 19:43
by ChristianG
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.

Re: New project compilation error

Posted: 21 Aug 2017 10:46
by lana.arsic
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