public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Linking shared libraries on hpux 10.20 with gcc 2.92.1 fails !!
@ 1999-10-28  5:37 Dr. Armin Tschammer
  1999-10-31 13:57 ` Dr. Armin Tschammer
  1999-11-10 11:22 ` jd_wells
  0 siblings, 2 replies; 13+ messages in thread
From: Dr. Armin Tschammer @ 1999-10-28  5:37 UTC (permalink / raw)
  To: help-gcc

Hi,
Now I succeded in compiling and installing the gcc 2.95.1 on a hpux
10.20 box.
I would like to create shared libraries and I did the following:


                  g++ -fpic  -c a.C
                  g++ -fpic  -c  b.C
                  g++ -shared  a.o b.o -o x.sl

  I got the following message:

/usr/ccs/bin/ld: DP relative code in file /var/tmp/cc2TTYoc.o - shared
library must be position
    independent.  Use +z or +Z to recompile.
collect2: ld returned 1 exit status


Any hints ??

Thanks

      Armin





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~1999-11-30 23:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-28  5:37 Linking shared libraries on hpux 10.20 with gcc 2.92.1 fails !! Dr. Armin Tschammer
1999-10-31 13:57 ` Dr. Armin Tschammer
1999-11-10 11:22 ` jd_wells
1999-11-10 11:22   ` jd_wells
1999-11-10 12:03   ` Eric Ladner
1999-11-10 12:03     ` Eric Ladner
1999-11-10 12:17     ` Jeffrey A Law
1999-11-30 23:28       ` Jeffrey A Law
1999-11-30 23:28     ` Eric Ladner
1999-11-11  1:27   ` Joerg Faschingbauer
1999-11-11  1:27     ` Joerg Faschingbauer
1999-11-30 23:28     ` Joerg Faschingbauer
1999-11-30 23:28   ` jd_wells

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).