Operating System - HP-UX
1752777 Members
6060 Online
108789 Solutions
New Discussion юеВ

HP UX B.11.23 Compilation problem

 
SOLVED
Go to solution
Must123
Occasional Advisor

HP UX B.11.23 Compilation problem

I am trying to compile my program on Machine Model : ia64 hp server BL860c having B.11.23 HP-UX version .

I am getting the following error,

Compiling prg.cc
/opt/aCC/bin/aCC -g0 +z +Z +Md +DA1.1 -I. -I./include -I/opt/aCC/include -I -I/opt/tuxdir/tuxedo8.1/include -I/usr/include -c prg.cc -o obj/prg.o

Error 8: "/usr/include/machine/sys/_types.h", line 65 # Invalid type specifier combination in declaration: "short double".
__fpreg __for_alignment_only_do_not_use;
^^^^^^^

What could be the problem in this compilation?
6 REPLIES 6
Must123
Occasional Advisor

Re: HP UX B.11.23 Compilation problem

we are using the HP ANSI C++ B3910B A.03.37 on a64 hp server BL860c.
Goutham YJ
Advisor
Solution

Re: HP UX B.11.23 Compilation problem

Hi Mustapha,

The trouble is that the compiler is assuming the compilation mode other than 32 bit but you are using ia64 hp server.

You need to define the pragma __STDC_32_MODE__ within the file you are compiling.

I hope this helps.

Thanks,
Goutham
Dennis Handly
Acclaimed Contributor

Re: HP UX B.11.23 Compilation problem

>we are using the HP ANSI C++ B3910B A.03.37 on ia64 hp server BL860c.

You can't. A.03.37 only runs on 11.11 system headers. And that old version is obsolete.
What are you really trying to do?
Must123
Occasional Advisor

Re: HP UX B.11.23 Compilation problem

Actually we are migrating from B11.21 to B11.23. Previously there was HP 9000 series(PA RISC) and we were having C++ servers compiled with the 3.31 compiler version. Systems.
Now its Itanium systems. So while compiling there servers on new hardware getting this problem.
Must123
Occasional Advisor

Re: HP UX B.11.23 Compilation problem

i.e. Migration from HP 11i V1 to 11i V2
Dennis Handly
Acclaimed Contributor

Re: HP UX B.11.23 Compilation problem

>So while compiling there servers on new hardware getting this problem.

You can't do this. Why are you trying to compile PA executables on an Integrity server?
You must purchase the aC++ compiler for Integrity.

You may want to look at XPADE:
http://www.hp.com/go/xpade