This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linking shared libraries on hpux 10.20 with gcc 2.92.1 fails !!


  In message <3829CF78.77507FC5@chevron.com>you write:
  > Try this instead:
  > 
  > g++ -fpic -c a.C
  > g++ -fpic -c b.C
  > ld -b a.o b.o -o x.sl
  > 
  > This works for me.  I've had problems in the past with g(cc/++)'s
This is wrong.  Your ctors and dtors in the shared library will not work.

The solution for this problem is in the FAQ.  It's not hard.  The entry
"why can't I build a shared library". 

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]