1751972 Members
4620 Online
108783 Solutions
New Discussion юеВ

How do I use C++ ?

 
SOLVED
Go to solution
Stuart Abramson_2
Honored Contributor

How do I use C++ ?

We have C++ installed on our system (I hope):

B3913DB C.03.37.01 HP aC++ Compiler (S800)

One of our developers today asked me how to use it. Where is the compiler?

So I looked inside the bundle B3913DB, but, of course, I can't tell which file
is the compiler. I don't even know it's name.

So, I looked on "www.docs.hp.com" and found "HP C++ Programmer's Guide", and it
says that you:

export PATH=/usr/bin/:$PATH

and use "cc", which is located at /usr/bin/cc.

But, when I "what /usr/bin/cc", it doesnt' say C++, it says "C":

# what /usr/bin/cc
/usr/bin/cc:
HP92453-01 A.11.01.21 HP C (Bundled) Compiler
$ Sep 8 2000 23:13:51 $

So, where is the C++ compiler, how do I set my path, and how do I use it?
3 REPLIES 3
James A. Donovan
Honored Contributor

Re: How do I use C++ ?

It usually installs under /opt/aCC.
Remember, wherever you go, there you are...
Tomek Gryszkiewicz
Trusted Contributor

Re: How do I use C++ ?

The standard "cc" from HP is C compiler. Try to use gcc instead: http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.3.2/

-Tomek
Tomek Gryszkiewicz
Trusted Contributor
Solution

Re: How do I use C++ ?

You should have it in /opt/aCC/bin/aCC

-Tomek