linking fails

  • Follow


Hi All,

I have HP-UX B.11.11. I downloaded and installed gcc version 3.3.3

Now if I try to run a small cpp programme I get following error
cpp
----------------------
#include <iostream.h>
int main()
{
     cout<<"Hi"<<endl;
     return 0;
}
-------------
If i give following command
c++ filename.cpp -o outputfilename.o


Error:
/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


How to resolve this.

regards,


0
Reply Shashank 6/25/2004 12:08:37 PM

get the latest linker PHSS_28871.

Shashank <shashank@icmgworld.com> wrote in message news:<40DC15C5.A98BB2F3@icmgworld.com>...
> Hi All,
> 
> I have HP-UX B.11.11. I downloaded and installed gcc version 3.3.3
> 
> Now if I try to run a small cpp programme I get following error
> cpp
> ----------------------
> #include <iostream.h>
> int main()
> {
>      cout<<"Hi"<<endl;
>      return 0;
> }
> -------------
> If i give following command
> c++ filename.cpp -o outputfilename.o
> 
> 
> Error:
> /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
> 
> 
> How to resolve this.
> 
> regards,
0
Reply jignaasu 6/26/2004 4:25:55 AM


1 Replies
167 Views

(page loaded in 0.041 seconds)

5/25/2013 4:29:18 PM


Reply: