how to build shared libraries with GCC 2.95.1 an HPUX 10.0 ?

Jeffrey A Law law@cygnus.com
Thu Oct 7 08:14:00 GMT 1999


  In message < 37FC67DD.FACC70A6@oi42.kwu.siemens.de >you write:
  > Hi,
  > I have installed the GCC-Compiler (2.95.1) on a 10.20 HPUX platform,
  > and now I would like to build a shared library from two object files
  > which I compiled in the following way:
  > 
  > g++ -fpic  -c a.C
  > g++ -fpic  -c  tt1_wrap.c
  > g++ -shared -fpic a.o b.o -o x.sl
  > 
  > I got the following message:
  > 
  > /usr/ccs/bin/ld: Procedure labels require the P' selector - use the P'
  > selector on code symbol
  >  "L$0139" in file tt1_wrap.o
  > collect2: ld returned 1 exit status
What assembler are you using?

jeff


More information about the Gcc-help mailing list