dynamic memory allocation by using mingw compiler

Sep 9, 2015 at 9:54am
HI

I am writing the code in Embedded c. I am using mingw compiler for compiling on windows 8.1 OS version. I am using malloc (dynamic memory) function in my code. For this I include stdlib.h file. but it show error "undefined reference to `malloc'" What is the problem????

Please guide me.

THank you
swap
Sep 9, 2015 at 10:20am
I don't think malloc is a wise thing to use in embedded environments. Yours may not even support it.
Sep 9, 2015 at 10:59am
Have you tried calloc ?
Topic archived. No new replies allowed.