public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* building C++ shared libs for systems w/o gcc installed
@ 2003-11-20 17:36 Dave O'Hair
  2003-11-20 17:47 ` Eljay Love-Jensen
  0 siblings, 1 reply; 4+ messages in thread
From: Dave O'Hair @ 2003-11-20 17:36 UTC (permalink / raw)
  To: gcc-help

I am trying to build a C++ shared lib using gcc/g++
3.2 on Solaris 8.
Everything works fine until I try to load it on a
machine that does not
have gcc installed at all, or has an older version
installed (2.95).
It complains that the library "libstdc++.so" isn't
found (indeed it is
not there).
 
So I want to link the shared lib with static linking
of the g++ runtime
libs.  I did this with the following link command:
 
g++ -shared -nodefaultlib $(OBJS)
/usr/local/lib/libstdc++.a /usr/local/lib/libsupc++.a
 
The link worked fine but when the program tries to
load (dlopen) the
shared lib, it fails with:
 
relocation error:  symbol __gxx_personality_v0:
referenced symbol not found
 
This symbol is in libstdc++.a but it doesn't get
copied into the shared lib.
Is there a way to force the linker to load everything
in libstdc++.a into the shared lib?
 
Are there any resources out there explaining how to
build C++ shared libs using
gcc/g++ for delivery to systems which don't have gcc
installed?


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <5.2.1.1.0.20031120125316.015c60e8@iplan-mn.corp.adobe.com>]

end of thread, other threads:[~2003-11-20 21:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-20 17:36 building C++ shared libs for systems w/o gcc installed Dave O'Hair
2003-11-20 17:47 ` Eljay Love-Jensen
2003-11-20 18:03   ` Dave O'Hair
     [not found] <5.2.1.1.0.20031120125316.015c60e8@iplan-mn.corp.adobe.com>
2003-11-20 21:31 ` Dave O'Hair

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).