dynamic memory allocation by using mingw compiler

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
I don't think malloc is a wise thing to use in embedded environments. Yours may not even support it.
Have you tried calloc ?
Topic archived. No new replies allowed.