Operating System - HP-UX
1833875 Members
2307 Online
110063 Solutions
New Discussion

g++ compiler on HPUX11.00

 
SOLVED
Go to solution
leonardo_20
Valued Contributor

g++ compiler on HPUX11.00

Any people know the following code error while compiling with g++ 3.3.1 on HPUX-11.00.
It happened when inserting an STL include on source code main.
I have a single source code to compile main.c, with the following make line:
g++ main.cpp -L/usr/lib -L/usr/local/lib -L/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.1 -I/usr/include/ -I/usr/local/include -I/usr/local/include/c++/3.3.1 -o demo -lstdc++

The error code follow:
/usr/ccs/bin/ld: Unrecognized argument: +init
/usr/ccs/bin/ld: Usage: /usr/ccs/bin/ld flags... files...
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.


Any people says what happen?
Thank's a lot
Leonardo Roberto
http://www.one-ans.it
1 REPLY 1
Mister_Z
Frequent Advisor
Solution

Re: g++ compiler on HPUX11.00

Hi Leonardo,

try to install the latest patch for ld:

PHSS_28869: s700_800 11.00 ld(1) and linker tools cumulative patch

HTH,
I work for HP