g++ refuses linking on HPUX with HP ld (32bit)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
 
I have some problems while linking with HP ld. I use the follwoing g++ configuration:
 
Reading specs from /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.2/specs
Configured with: /scratch/root/gcc-pkg/3.3.1/hpux-11/gcc-3.3.2/configure --enable-languages=c,c++ --enable-threads=posix --disable-nls --with-gnu-as --without-gnu-ld --with-as=/usr/local/bin/as --prefix=/usr/local
Thread model: posix
gcc version 3.3.2

 
Now I tried to compile and link a shared lib:
 
        $ g++ -fPIC -c -D _INCLUDE_HPUX_SOURCE -I. -I../../include -fno-gnu-linker  trbg.cpp
In file included from trbg.cpp:1:
trbg.h:72: warning: all member functions in class `CTRbg' are private
        $ g++ -fPIC -shared -fno-gnu-linker  -o libtrbg.sl trbg.o
/usr/ccs/bin/ld: Unrecognized argument: +init
/usr/ccs/bin/ld: Usage:  /usr/ccs/bin/ld [options] [flags] files
collect2: ld returned 1 exit status
*** Error exit code 1
 
Stop.

Collect2 is producing some extra code and generates +init linker args. +init is not supported by the 32 bit HP linker. Why is collect2 producing extra code? Can I turn the +init arg off? How can I turn it off?
 
Mit freundlichen Grüßen
Reto Strahl


____________________________________________________________
This message may contain legally privileged or confidential 
information and is therefore addressed to the named persons only. 
The recipient should inform the sender and delete this message, 
if he/she is not named as addressee. 
The sender disclaims any and all liability for the integrity 
and punctuality of this message. 
The sender has activated an automatic virus scanning by 
Messagelabs, but does not guarantee the virus free 
transmission of this message.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux