- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error while compilaton in HP-UX11.11
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2003 10:17 AM
тАО10-13-2003 10:17 AM
I am getting the following error while compiling my 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
Can anyone please help me find a solution for this problem.
-Anand.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2003 11:07 AM
тАО10-13-2003 11:07 AM
Re: Error while compilaton in HP-UX11.11
You could switch to +I initializers as discussed in
http://docs.hp.com/cgi-bin/onlinedocs.py?mpn=B2355-90655&service=hpux&path=00/00/54
Or you could get a newer linker such as patch PHSS_28871.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2003 11:22 AM
тАО10-13-2003 11:22 AM
Re: Error while compilaton in HP-UX11.11
I am using 32-bit mode and the gcc version 3.3.1. I did not get this kind of error while compiling other codes but when I tried compiling a C++ code using the c++ which comes alone with gcc-3.3.1, I got this error.
Will installing the new linker patch, help me solve this problem. Is there any other ways in which I can get around this problem.
-Anand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2003 09:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2003 11:11 AM
тАО10-15-2003 11:11 AM
Re: Error while compilaton in HP-UX11.11
I would install the current linker patch and try the compile again
-Anand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2003 09:52 PM
тАО11-09-2003 09:52 PM
Re: Error while compilaton in HP-UX11.11
the following code error happened 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 makefile 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.
Can you help me to resolve that problem ?
I saw you have encountered that
Leonardo Roberto
leorob@hotmail.com