Operating System - HP-UX
1832993 Members
3793 Online
110048 Solutions
New Discussion

How to compile c programs using HP ANSI C++ compiler?

 
SOLVED
Go to solution
Sauvik Basu
Advisor

How to compile c programs using HP ANSI C++ compiler?

Any ideas how to compile c programs using HP ANSI C++ compiler?
6 REPLIES 6
Peter Godron
Honored Contributor
Solution

Re: How to compile c programs using HP ANSI C++ compiler?

Hi,
read the support documentation for examples.
You can use/adapt the make scripts delivered with the product.
In principle:
1. Identify your compiler as the one to be used (which cc)
2. Compile the code cc a.c, which will generate a.out
Arunvijai_4
Honored Contributor

Re: How to compile c programs using HP ANSI C++ compiler?

Hi,

You can use aCC compiler to compile your C codes.

# acc your_code.c

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
sysadm_1
Valued Contributor

Re: How to compile c programs using HP ANSI C++ compiler?


Hi Basu,
Once you install AC++ compiler,

run
aCC

By default aCC compiler is in path /opt/aCC/bin
Incluse /opt/aCC/bin in your PATH.

-sysadm
inventsekar_1
Respected Contributor

Re: How to compile c programs using HP ANSI C++ compiler?

so u know how to compile.

here some links to help you.
HP aC++ Online Programmer's Guide
http://docs.hp.com/en/7762/5991-4874/index.htm

Development Tools and Distributed Computing
http://docs.hp.com/en/dev.html#aC%2B%2B%20%28ANSI%29

Sekar
Be Tomorrow, Today.
Sauvik Basu
Advisor

Re: How to compile c programs using HP ANSI C++ compiler?

Thank you.
Peter Godron
Honored Contributor

Re: How to compile c programs using HP ANSI C++ compiler?

sauvik,
if you are happy with the replies, can you please see:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28