1752354 Members
6194 Online
108787 Solutions
New Discussion юеВ

Re: 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 3
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
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