Article View: gnu.gcc.help
Article #51262using old libg++ with new gcc
From: Alan Ezust
Date: Mon, 07 Jun 1993 15:10
Date: Mon, 07 Jun 1993 15:10
41 lines
2064 bytes
2064 bytes
I am using gcc 2.3.3 and libg++1.39.0 to compile a program which requires the streambuf class of libg++1.39.0... I have managed to compile things without problem, but when I am linking them together to create the executable, I get the following linker errors: ld: Undefined symbol __$_7ostream ___ls__7ostreamd ___ls__7ostreami ___ls__7ostreamPCc __$_7filebuf __$_7istream Here is the command which caused the errors: gcc -DGNU -w -msoft-float -I/home/murtaugh/aezust/libg++1.39.0/g++-include -I/usr/local/lib/gcc-include -o pet estgram.tab.o def.o type.o const_vars.o mod.o ip.o proc.o stmt.o expr.o trans.o EST.o pet.o container.o err.o -lm -L/home/murtaugh/aezust/libg++1.39.0 -lg++old The executable, pet, is created anyway, however. When I run it (a rather large executable, I might add), I get the following output: ld.so: Undefined symbol: ___ls__7ostreamPCc It appears these are symbols generated by the c++ preprocessor, but I am at a loss as to how to track this kind of error down... Any assistance would be appreciated. If you want to see the entire makefile, or parts of the code, just say so... Is this something which may be caused by mixing the old libg++ with the new gcc? -- | Alan Ezust ezust@iro.umontreal.ca Montreal, Quebec, Canada | |---------- Universite de Montreal Departement d'informatique -----------|
Technical Details
Message-ID:
<1993Jun7.151003.19346@IRO.UMontreal.CA>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!cs.utexas.edu!uunet!newsflash.concordia.ca!sifon!CC.UMontreal.CA!IRO.UMontreal.CA!ezustShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,caf8139438172b38,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-06-07 08:44:35 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!cs.utexas.edu!uunet!newsflash.concordia.ca!sifon!CC.UMontreal.CA!IRO.UMontreal.CA!ezust From: ezust@IRO.UMontreal.CA (Alan Ezust) Subject: using old libg++ with new gcc Message-ID: <1993Jun7.151003.19346@IRO.UMontreal.CA> Sender: news@IRO.UMontreal.CA Organization: Universite de Montreal, Canada Distribution: gnu Date: Mon, 7 Jun 1993 15:10:03 GMT Lines: 41