Operating System - HP-UX
1753506 Members
5162 Online
108794 Solutions
New Discussion юеВ

Re: Compilation errors on HP itanium 32bit porting.

 
Sunny6868
New Member

Compilation errors on HP itanium 32bit porting.


I am getting following errors on HP Itanium for 32 bit porting.

Error 328: "/opt/aCC/include/memory", line 493 # Function 'bad_alloc' has not been defined yet; cannot call.
RWSTD_THROW_NO_MSG(tmp == 0, bad_alloc);
^^^^^^^^^^^^^^^^^^
Error 419: "/opt/aCC/include/stdexcept", line 69 # 'exception' is used as a type, but has not been defined
as a type.
class RWSTDExport logic_error : public exception
^^^^^^^^^
Error 376: "/opt/aCC/include/stdexcept", line 69 # Class name expected.
class RWSTDExport logic_error : public exception
^^^^^^^^^
Error 419: "/opt/aCC/include/stdexcept", line 145 # 'exception' is used as a type, but has not been defined
as a type.
class RWSTDExport runtime_error : public exception
^^^^^^^^^
Error 376: "/opt/aCC/include/stdexcept", line 145 # Class name expected.
class RWSTDExport runtime_error : public exception
^^^^^^^^^
Error 328: "PXLog.cpp", line 382 # Function 'bad_alloc' has not been defined yet; cannot call.
throw bad_alloc ();
^^^^^^^^^
These are my compiler options
mycopts = -AA +DD32 +u1 -c +z -DHPUX +W 749,829,921
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: Compilation errors on HP itanium 32bit porting.

You are using obsolete aCC5. You need to use aCC6 on Integrity.

You are illegally specifying the default include paths, let the driver do it. Remove -I/usr/include or -I/opt/aCC/include.

>mycopts = -AA +u1 -c +z -DHPUX +W749,829,921

These +W options aren't valid for aCC6.
Sunny6868
New Member

Re: Compilation errors on HP itanium 32bit porting.


Hi,

I have been advised to use aCC5 compiler only.

What is the compiler option to tell the compiler to pick header files for user defined location directories.

Something like -qnostdinc in aix
Dennis Handly
Acclaimed Contributor

Re: Compilation errors on HP itanium 32bit porting.

>I have been advised to use aCC5 compiler only.

aCC5 is NOT supported!

>What is the compiler option to tell the compiler to pick header files for user defined location directories.

There is -I. Are you thinking about +nostl?
What are you trying to do?