Operating System - HP-UX
1834149 Members
2333 Online
110064 Solutions
New Discussion

Re: STDLIB.H Problem on HP-UX 10.x

 
Rob Thompson
New Member

STDLIB.H Problem on HP-UX 10.x

I a writing a C programs that extend the functionality of an Oracle 8i database. It uses
STDLIB.H, STDIO.H and MATH.H. Currently the code compiles using gcc 2.9.x for WinNT and with MS Visual C++ on a WinNT box. There are no
special things going on and it uses standard ANSI C. I get the following errors when trying to compile on HP-UX box:

kzdd006:d1aac1:/d1aac1/app/home/a566939/c_code $ cc -v discintr2 discintr2.c -lm

(Bundled) cc: NLSPATH is /usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/C/%N.cat:
(Bundled) cc: CCOPTS is not set.
(Bundled) cc: INCLUDIR is INCLUDIR=/usr/include
/usr/ccs/lbin/cpp discintr2.c /var/tmp/ctmAAAa24173 -$ -D__hp9000s800 -D__hppa
D__hpux -D__unix -D_PA_RISC1_1 -D__CLASSIC_C__ -j
(Bundled) cc: Entering Preprocessor.
/usr/ccs/lbin/ccom /var/tmp/ctmAAAa24173 discintr2.o
(Bundled) cc: "discintr2.c", line 46: warning 5: "const" will become a keyword.
(Bundled) cc: "discintr2.c", line 46: error 1000: Unexpected symbol: "char".
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.


1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: STDLIB.H Problem on HP-UX 10.x

The bundled C compiler is very limited and only understands K&R C. It is primarily intended for linking kernels. You need to install the ANSI/C compiler B3901BA or aC++
B3913DB or install gcc.
If it ain't broke, I can fix that.