This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: malloc undefined cross compiling with gcc 3.4.3 for mingw32
- From: Ian Lance Taylor <ian at airs dot com>
- To: Mr E_T <troll at arach dot net dot au>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 24 May 2005 10:09:05 -0400
- Subject: Re: malloc undefined cross compiling with gcc 3.4.3 for mingw32
- References: <200505240958.50501.troll@arach.net.au>
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