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

Joerg Faschingbauer jfasch@hyperwave.com
Fri Oct 8 03:20:00 GMT 1999


"Dr. Armin Tschammer" <tscha00a@oi42.kwu.siemens.de> writes:

> 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
> 
> Until now I have not found any hint in the man-pages, how I
> have to link.
> Could someone help me, I would like to read the f... manual if I would
> know which manual !!

You haven't read the install/SPECIFIC file where it recommends using
the GNU assembler, have you?

Joerg


More information about the Gcc-help mailing list