Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

gcc question

SOLVED
Go to solution
yc_2
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
Hartmut Lang
Trusted Contributor

Re: gcc question

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

Hardy
H.Merijn Brand (procura
Honored Contributor
Solution

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
Highlighted
yc_2
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