1834914 Members
2757 Online
110071 Solutions
New Discussion

Re: Compile a program ?

 
Isaac_4
Frequent Advisor

Compile a program ?

Hi:
I whant to know who can compile a programa to hpux box, somebody can help me made step by step.

Thank you!!

I have install C++
The time is gold
3 REPLIES 3
Sandman!
Honored Contributor

Re: Compile a program ?

Issac,

For C programs use cc and for C++ use aCC. Each of these needs to be purchased from HP separately. So depending on your coding needs (C or C++) do the requisite.

cheers!
A. Clay Stephenson
Acclaimed Contributor

Re: Compile a program ?

In that case, it could be as simple as

aCC myfile.C -o myfile

but I doubt it's going to be that simple.

You are basically telling you that you have purchased a car and there is fuel in the tank. Now you want to go to Hot Coffee, MS but you haven't told us where you are now or what are your current driving skills.
If it ain't broke, I can fix that.
Arunvijai_4
Honored Contributor

Re: Compile a program ?

Hello,

For C++, you may need to install aC++ or GCC in your hp-ux box. You can download GCC from,

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,7663,00.html

Once you installed GCC, you can just compile as,

# g++ -o test test.cpp

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