Showing results for 
Search instead for 
Do you mean 

gcc question

SOLVED
Go to Solution
Highlighted
Regular Advisor

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
3 REPLIES
Trusted Contributor Trusted Contributor

Re: gcc question

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

Hardy
Honored Contributor Honored Contributor

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

Re: gcc question

Hi,

Thanks for taking your time for giving the advices.

Problem solved after upgraded gcc to 3.0.2.


Thanks,
YC