Mail Archives: djgpp/2002/04/09/08:45:05.1
deckerben (deckerben AT freenet DOT de) wrote:
: D:\Project\dxe2\src>gcc -O2 -g -Wall dxe2api.o dxe2stat.o -I../include
: dxe2gen.cpp -o dxe2gen.exe
: d:/user/djgpp/tmp\ccpkhKFC.o: In function `write_dxe(FILE*, FILE*,
: external_file
: hdr&)':
: dxe2gen.cpp:237: undefined reference to `operator new[](unsigned long)'
: dxe2gen.cpp:242: undefined reference to `operator new[](unsigned long)'
: dxe2gen.cpp:249: undefined reference to `operator new[](unsigned long)'
: dxe2gen.cpp:254: undefined reference to `operator new[](unsigned long)'
: dxe2gen.cpp:481: undefined reference to `operator delete[](void*)'
: dxe2gen.cpp:485: undefined reference to `operator delete[](void*)'
: dxe2gen.cpp:486: undefined reference to `operator delete[](void*)'
: dxe2gen.cpp:487: undefined reference to `operator delete[](void*)'
: d:/user/djgpp/tmp\ccpkhKFC.o: In function `make_implib()':
: dxe2gen.cpp:521: undefined reference to `operator new[](unsigned long)'
: dxe2gen.cpp:616: undefined reference to `operator delete[](void*)'
: dxe2gen.cpp:539: undefined reference to `operator delete[](void*)'
: d:/user/djgpp/tmp\ccpkhKFC.o: In function `show_symbols(char const*)':
: dxe2gen.cpp:647: undefined reference to `operator new[](unsigned long)'
: d:/user/djgpp/tmp\ccpkhKFC.o(.eh_frame+0x11):dxe2gen.cpp: undefined
: reference to
: `__gxx_personality_v0'
: collect2: ld returned 1 exit status
: Note: it appears that gcc DID NOT 'link with the standard C++ library',
: although the cpp file extension appeared in the second command line.
: now I try it again with manual link option with library:
: gcc -O2 -g -Wall dxe2api.o dxe2stat.o -I../include dxe2gen.cpp -o
: dxe2gen.exe -lstdcxx
: ...and it works fine. it seems that GCC is not automaticly pulling up the
: standard C++ lib here, even when a .cpp file is being specified.
Well it looks like you didn't uninstall the previous version of gcc
before installing the one you're trying to use.
Right,
MartinS
- Raw text -