Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ld error while compiling

Status
Not open for further replies.

sab1234

Programmer
Sep 29, 2003
11
0
0
US
HI,

I am getting the following error while compiling some C++ code in HP-UX11.11:

/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


I am using gcc-3.3.1 compiler.

Can anyone please help me to solve this problem.

Thanks,
Andy


 
It seems that your makefile contains some options which ld is not aware of.

Check the version/man page of your ld... Maybe you have to change your make file.. it seems that the makefile and ld are not compatible.. .
 
i guess you are using some old linker which doesnt yet support +init. install PHSS_28871 (there is at least one known bug in PHSS_30049).
 
Can you tell me what the problem is with
PHSS_30049 ? I'm about to install patches
and would like to use the correct ones.

thanks
bryan
 
when building a big shared library, the PA32 linker may insert a bad export stub that can make the application hang when it calls a procedure in that library (by looping back and forth between the library procedure and the that procedure's export stub, not returning to the application).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top