RE: to build an so containing libgcc.so and libstdc++.so

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

 



Hi Eljay,
	Linking using -static leads to errors. coz. it then reports all
other symbols being linked in some other custom libs to be undefined.
	For example
	g++ -L/usr/local/lib -lmyLib1 -lmyLib2 -o myApp
	worked fine but
	g++ -L/usr/local/lib -lmyLib1 -lmyLib2 -static -lstdc++ -o myApp
	reports
	ld: 0711-317 ERROR: Undefined symbol: mysymbol1
	ld: 0711-317 ERROR: Undefined symbol: mysymbol2
	ld: 0711-317 ERROR: Undefined symbol: mysymbol3 etc.....

Any guesses why???

-----Original Message-----
From: Eljay Love-Jensen [mailto:eljay@xxxxxxxxx]
Sent: Friday, August 29, 2003 5:30 PM
To: ashende@xxxxxxxxx; gcc-help@xxxxxxxxxxx
Subject: Re: to build an so containing libgcc.so and libstdc++.so


Hi Ashay,

Try linking against the static versions of those libraries.  For instance,
g++ foo.cpp -static

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux