www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/09/08:45:05.1

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: making dxe2gen with clio.rice.edu binaries -or- "undefined reference to 'operator'"?
Date: 9 Apr 2002 12:27:25 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 43
Message-ID: <a8umnd$ob7$2@antares.lu.erisoft.se>
References: <3ca78d87$0$364$9b622d9e AT news DOT freenet DOT de> <a8eoih$m9u$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <3cab2f26$0$152$9b622d9e AT news DOT freenet DOT de> <Pine DOT GSO DOT 4 DOT 44 DOT 0204040850130 DOT 10680-100000 AT mozart DOT orchestra DOT cse DOT unsw DOT EDU DOT AU> <3cace922$0$12701$9b622d9e AT news DOT freenet DOT de> <3CAD6C24 DOT 495D4F57 AT phekda DOT freeserve DOT co DOT uk> <3cb2d8a3$0$28200$9b622d9e AT news DOT freenet DOT de>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019