statically linking libstdc++ and libgcc on HPUX 11.11 and g++ Hi,
Help Please, I am trying to statically link the g++'s libstdc++.sl.5.5
and other gcc shared libraries, using g++ 3.3.3 on HPUX 11.11.
To compile I am giving:
=================
g++ -nostdlib -shared-libgcc -g -I/usr/local/include/ -I/usr/include/
-c receiver.cpp
To statically link i am giving:
====================
g++ -v -static-libgcc -o Recv receiver.o -L../BiiNNM/lib_hpux/bmciilib
-L/usr/local/lib
-L/usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.3 -L/usr/lib -ldld
-lCsup -lcl -lpthread -Wl,-B,immediate -Wl,-B,nonfatal -Wl,-B,verbose
-Wl,-a,archive -lstdc++ -Wl,-a,archive -lgcc_eh
It links without any errors but when I run it it gives following error:
$ ./Recv
aCC runtime: Error 22 from shl_findsym(/usr/lib/libCsup.2,_shlInit)
Abort(coredump)
Any help , thanks in advance
Nilesh
<hr><font face="Arial" size="2">Indiatimes Email now powered by <b>APIC
Advantage</b>. <a href="http://email.indiatimes.com/apic/">Help!</a>
</font><br><DIV align=left><a target="_blank"
href="http://imaround.indiatimes.com/IMaround/presencefr.mss?userid=nlsh123"
><IMG alt="My Presence" border=0
src="http://203.199.93.51/IMaround/getpresence.mss?userid=nlsh123"
></a><a target="_blank"
href="http://email.indiatimes.com/apic/userpage.html"><FONT
face="Arial" size=2>Help</font></a></DIV><DIV align=left><FONT
color=#008000 face="Lucida Sans Unicode" size=1>Click on the image to
chat with me</FONT></DIV><a href=http://fastforward.indiatimes.com><img
src=http://email.indiatimes.com/image/fastforward.gif border=0></a> |