This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: malloc undefined cross compiling with gcc 3.4.3 for mingw32


Mr E_T <troll@arach.net.au> writes:

>  /opt/compilers/lib/gcc/i486-mingw32/3.4.3/../../../../include/c++/3.4.3/cstdlib:103: error: `::malloc' has not been declared

<cstdlib> includes <stdlib.h>.  <stdlib.h> is supposed to declare
malloc.  Apparently, it doesn't, and that is what the compiler is
complaining about.

This is not a compiler bug, unless there really is a declaration of
malloc and the compiler is somehow ignoring it.  This is a library bug
of some sort.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]