Operating System - Linux
1830222 Members
1959 Online
109999 Solutions
New Discussion

Error including C standard headers in Itanium server

 
Thiagu_1
Advisor

Error including C standard headers in Itanium server

While running the following command in HP-UX 11.23 Itanium server, I get some errors while including C standard headers.

The C compiler version is
cc: HP aC++/ANSI C B3910B A.06.05 [Jul 25 2005]

/usr/bin/cc -g -DIT_USE_STD_IOSTREAM -D_DEBUG -DUSE_AA_OPTION +W641 -Wl,+s -D_RWCONFIG__RogueWaveStdLib_NoThrLib_Static_Debug -I./include -I/ymstools/HP-UX_B.11.23/packages/SourcePro/SourcePro32/Ed8/include -I/ymstools/HP-UX_B.11.23/packages/SourcePro/SourcePro32/Ed8 -c src/eval.c -o lib/eval.o

"./include/vinclude.h", line 80: error #2005: could not open source file "cstdio"
#include
^

"./include/vinclude.h", line 88: error #2005: could not open source file "csignal"
#include
^

"./include/vinclude.h", line 90: error #2005: could not open source file "cctype"
#include
^

"./include/vinclude.h", line 94: error #2005: could not open source file "cerrno"
#include
^

"./include/vinclude.h", line 123: error #2005: could not open source file "cstring"
# include
^

"./include/vmath.h", line 63: error #2005: could not open source file "cmath"
#include
^

"./include/xvparser.h", line 63: error #2005: could not open source file "cstdio"
#include "cstdio"
^

"./include/xvparser.h", line 103: error #2020: identifier "pow" is undefined
{ "pow", pow, 2 },
^

"./include/xvparser.h", line 104: error #2020: identifier "sin" is undefined
{ "sin", sin, 1 },
^

"./include/xvparser.h", line 105: error #2020: identifier "cos" is undefined
{ "cos", cos, 1 },
^

"./include/xvparser.h", line 106: error #2020: identifier "tan" is undefined
{ "tan", tan, 1 },
^

"./include/xvparser.h", line 107: error #2020: identifier "sinh" is undefined
{ "sinh", sinh, 1 },
^

"./include/xvparser.h", line 108: error #2020: identifier "cosh" is undefined
{ "cosh", cosh, 1 },
^

"./include/xvparser.h", line 109: error #2020: identifier "tanh" is undefined
{ "tanh", tanh, 1 },
^

"./include/xvparser.h", line 110: error #2020: identifier "asin" is undefined
{ "asin", asin, 1 },
^

"./include/xvparser.h", line 111: error #2020: identifier "acos" is undefined
{ "acos", acos, 1 },
^

"./include/xvparser.h", line 112: error #2020: identifier "atan" is undefined
{ "atan", atan, 1 },
^

"./include/xvparser.h", line 113: error #2020: identifier "atan2" is undefined
{ "atan2", atan2, 2 },
^

"./include/xvparser.h", line 114: error #2020: identifier "exp" is undefined
{ "exp", exp, 1 },
^

"./include/xvparser.h", line 115: error #2020: identifier "sqrt" is undefined
{ "sqrt", sqrt, 1 },
^

"./include/xvparser.h", line 116: error #2020: identifier "log" is undefined
{ "ln", log, 1 },
^

"./include/xvparser.h", line 117: error #2020: identifier "log10" is undefined
{ "log10", log10, 1 },
^

"./include/xvparser.h", line 118: error #2020: identifier "hypot" is undefined
{ "hypot", hypot, 2 },
^

"./include/xvparser.h", line 119: error #2020: identifier "fabs" is undefined
{ "abs", fabs, 1 },
^

"./include/xvparser.h", line 120: error #2020: identifier "floor" is undefined
{ "floor", floor, 1 },
^

"./include/xvparser.h", line 121: error #2020: identifier "ceil" is undefined
{ "ceil", ceil, 1 },
^

"./include/xvparser.h", line 128: error #2020: identifier "j0" is undefined
{ "j0", j0, 1 },
^

"./include/xvparser.h", line 129: error #2020: identifier "j1" is undefined
{ "j1", j1, 1 },
^

"./include/xvparser.h", line 130: error #2020: identifier "y0" is undefined
{ "y0", y0, 1 },
^

"./include/xvparser.h", line 131: error #2020: identifier "y1" is undefined
{ "y1", y1, 1 },
^

"./include/xvparser.h", line 149: error #2020: identifier "NULL" is undefined
{ NULL, 0, 0 },
^

"src/eval.c", line 565: warning #2513-D: a value of type "int" cannot be assigned to an entity of type "char *"
result->String = VStrcat(str1, str2);
^

31 errors detected in the compilation of "src/eval.c".
gmake: *** [lib/eval.o] Error 1


Do I need to include any C type linking libraries to resolve this issue?
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Error including C++ versions of C standard headers on Integrity server

You can't use the C compiler to compile C++.  You must use /opt/aCC/bin/aCC.

>Error including C standard headers

These are NOT the C Standard headers but the C++ versions of them.