gcc question (268 Views)
Reply
Regular Advisor
Posts: 330
Registered: ‎08-31-1998
Message 1 of 4 (268 Views)
Accepted Solution

gcc question

Hi,

I installed gcc (2.95.2) in a K-450 machine with HP-UX 11.00 and tried to compile a simple program but got the following message:

the program:
#include

int main()
{
std::cout << "Hello, world!" << std::endl;
return 0;
}

the message:
as: "/var/tmp/ccAHruuc.s", line 108: error 1052: Directive name not recognized - NSUBSPA

Any pointer is appreciated.


YC
Trusted Contributor
Posts: 177
Registered: ‎12-18-1996
Message 2 of 4 (268 Views)

Re: gcc question

Make shure that you gcc calls the GNU-assembler and not(!) the native HP assembler.

Hardy
Honored Contributor
Posts: 6,194
Registered: ‎10-13-1997
Message 3 of 4 (268 Views)

Re: gcc question

Install GNU as from the GNU binutils, preferably binutils-1.12

More recent releases of both binutils and gcc (please upgrade to 3.0.2) have much better hppa support.
Enjoy, Have FUN! H.Merijn
Regular Advisor
Posts: 330
Registered: ‎08-31-1998
Message 4 of 4 (268 Views)

Re: gcc question

Hi,

Thanks for taking your time for giving the advices.

Problem solved after upgraded gcc to 3.0.2.


Thanks,
YC
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.