Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check compiler

Status
Not open for further replies.

EBee

MIS
Aug 10, 2001
229
0
0
US
How can I verify the type of c++ compiler is installed in our SunOs 5.8.

Our vendor wanted us to purchase new C++ compiler since they said that SunMicrosystems discontinued Sun Studio One 8 compiler. Sun now provides Sun Studio 9 or 10 which is compatible with Solaris 8,9, or 10. .

I need to verify version of C++ compiler

Thank you.
 
You can try to run command "which CC". Go to that directory and enter command "version CC".
 
which directory??

erwin@sacdev / $ cd bin
erwin@sacdev /bin $ which CC
no CC in /usr/bin . /etc /opt/SUNWvxva/bin /pbs/bin .
erwin@sacdev /bin $ cd ..
erwin@sacdev / $ cd etc
erwin@sacdev /etc $ which CC
no CC in /usr/bin . /etc /opt/SUNWvxva/bin /pbs/bin .
erwin@sacdev /etc $ version CC
ksh: version: not found
erwin@sacdev /etc $
 
I guess you don't have your sunstudio application in your set up in your environment PATH. Okay... Go to the bin directory under the sunstudio 8 home directory (Example: /home/sunstudio/bin)... Enter command "./version CC
 
Yes it is CC (caps)... EBee is looking for the version of the c++ compiler in Sunstudio 8.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top