help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help interpretting a g++ error?


From: Dan Stromberg
Subject: Help interpretting a g++ error?
Date: Wed, 20 Jul 2005 16:04:29 GMT
User-agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)

I'm trying to build some software using g++.

I keep getting this weird "malloc not declared" errors when cstdlib is
included.  I googled around about this, but while I found many folks
posing similar questions, I didn't find much in the way of usable answers.

I've tried gcc 3.3.6 and gcc 3.2.3, with the same result.  I'm working in
parallel on building a version of 4.0.1 to see if that helps, but that may
turn out to be a long-term project, since I'm working on AIX 5.1

I also tried truss'ing the g++ process, which generally works great with C
code for finding missing header files, but with g++ it doesn't seem to
help.

Does anyone have any suggestions what to make of this, and how to get
around it?

Thanks!

/usr/local/gcc-3.2.3/bin/g++ -v -maix32 -c -g3 -O0 -Wall -fno-defer-pop 
-DHAVE_CONFIG_H -DDEFAULT_BASETYPE_FACTORY -I. -IGNU -Iregex-0.12 
-I/usr/local/include -I/usr/local/include/libxml2 -o AttrTable.o
AttrTable.cc Reading specs from
/usr/local/gcc-3.2.3/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.2.3/specs
Configured with: ./configure --prefix=/usr/local/gcc-3.2.3 Thread model:
aix
gcc version 3.2.3
 /usr/local/gcc-3.2.3/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.2.3/cc1plus -v
 -I. -IGNU -Iregex-0.12 -I/usr/local/include -I/usr/local/include/libxml2
 -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3
 -D__GXX_ABI_VERSION=102 -D_IBMR2 -D_POWER -D_LONG_LONG -D_AIX -D_AIX32
 -D_AIX41 -D_AIX43 -D_AIX51 -D_IBMR2 -D_POWER -D_LONG_LONG -D_AIX -D_AIX32
 -D_AIX41 -D_AIX43 -D_AIX51 -Asystem=unix -Asystem=aix -D__NO_INLINE__
 -D__STDC_HOSTED__=1 -dD -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED=1
 -D_LARGE_FILE_API -D_ALL_SOURCE -D__WCHAR_TYPE__=short unsigned int
 -D_ARCH_COM -DHAVE_CONFIG_H -DDEFAULT_BASETYPE_FACTORY AttrTable.cc
 -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase AttrTable.cc
 -maix32 -g3 -O0 -Wall -version -fno-defer-pop -o
 /ptmp/strombrg/ccXurY2n.s
GNU CPP version 3.2.3 (cpplib)
GNU C++ version 3.2.3 (powerpc-ibm-aix5.1.0.0)
   compiled by GNU C version 3.3.6.
ignoring nonexistent directory
"/usr/local/gcc-3.2.3/powerpc-ibm-aix5.1.0.0/include" ignoring duplicate
directory "/usr/local/include"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
 .
 GNU
 regex-0.12
 /usr/local/include/libxml2
 /usr/local/gcc-3.2.3/include/c++/3.2.3
 /usr/local/gcc-3.2.3/include/c++/3.2.3/powerpc-ibm-aix5.1.0.0
 /usr/local/gcc-3.2.3/include/c++/3.2.3/backward /usr/local/include
 /usr/local/gcc-3.2.3/include
 /usr/local/gcc-3.2.3/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.2.3/include
 /usr/include
End of search list.
In file included from
/usr/local/gcc-3.2.3/include/c++/3.2.3/bits/stl_algobase.h:67,
                 from /usr/local/gcc-3.2.3/include/c++/3.2.3/memory:54,
                 from /usr/local/gcc-3.2.3/include/c++/3.2.3/string:48,
                 from
                 /usr/local/gcc-3.2.3/include/c++/3.2.3/bits/localefwd.h:49,
                 from /usr/local/gcc-3.2.3/include/c++/3.2.3/ios:48, from
                 /usr/local/gcc-3.2.3/include/c++/3.2.3/ostream:45, from
                 /usr/local/gcc-3.2.3/include/c++/3.2.3/iostream:45, from
                 AttrTable.cc:44:
/usr/local/gcc-3.2.3/include/c++/3.2.3/cstdlib:103: `malloc' not declared
/usr/local/gcc-3.2.3/include/c++/3.2.3/cstdlib:109: `realloc' not declared
gmake: *** [AttrTable.o] Error 1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]