Operating System - HP-UX
1748222 Members
4525 Online
108759 Solutions
New Discussion юеВ

C++ and C/ANSI-C compiling VNC Server.

 
SOLVED
Go to solution
Stuart Abramson_2
Honored Contributor

C++ and C/ANSI-C compiling VNC Server.

Our DBAs got the VNC Server from somewhere.

They compile it with C++, which we have on our servers:

# swlist | grep -i c\+\+
B3913DB C.03.37.01 HP aC++ Compiler (S800)

However, the VNC build fails with the messages below (warnings and can't find the the C/ANSI-C compiler):

make Makefile.boot

cd ./config/imake && make -f Makefile.ini BOOTSTRAPCFLAGS=""

making imake with BOOTSTRAPCFLAGS= in config/imake

cc -o ccimake -O -I../../include -I../../imports/x11/include/X11 ccimake.c

(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.

/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (ccimake.o) was detected. The linked output may not run on a PA 1.x system.

+ mkdir bootstrap

mv *.o imake bootstrap

cd ./config/imake && make -f Makefile.proto all

/opt/ansic/bin/cc +O1 -Ae +ESlit -I../../include -I../../exports/include/X11 -I../.. -I../../exports/include -Dhpux -DSYSV -DCPP_PROGRAM="\"/opt/langtools/lbin/cpp\"" -c imake.c

sh: /opt/ansic/bin/cc: not found.

*** Error exit code 127

So, my questions are:
1. Does the C++ compiler require the C/ANSI-C compiler?
2. Did we BUY C++ without buying C/ANSI-C? Is that allowed?
3. Is there some VNC "make" option I turn on to allow C++ to work with the HP "embedded" C? Or some C++ option?
4. Can I just download C/ANSI-C for free? Where from?

What should I do here?
3 REPLIES 3
Denver Osborn
Honored Contributor
Solution

Re: C++ and C/ANSI-C compiling VNC Server.

The C-ANSI-C is not a free compiler and is a seperate product that has to be purchased.

product# B3901BA

You might be able to sneak by with using gcc, but it could take more work than using HP's ANSI-C

good luck!
-Denver

Stuart Abramson_2
Honored Contributor

Re: C++ and C/ANSI-C compiling VNC Server.

Thanks, Dennis.

I thought that the C++ compiler was like a pre-processor that turned C++ code into C code and then called the C/ANSI-C compiler.

I was wrong. C++ is a stand-alone compiler.

Our problem is that we don't have the C/ANSI-C compiler, which is the compiler that is required here.
Antoniov.
Honored Contributor

Re: C++ and C/ANSI-C compiling VNC Server.

Stuard,
do you evaluate use Java?
J is more stable than c++ and it's more portable; and it's free.
Antoniov
Antonio Maria Vigliotti