Operating System - Linux
1832964 Members
2463 Online
110048 Solutions
New Discussion

Re: Which C compiler I have active???

 
Elias Abboud
Honored Contributor

Which C compiler I have active???

Is there a command that returns which C compiler and which version and other info

I mean when I issue the cc command....

Any help is greatly appreciated
Thanks in advance.
If you can't solve it, post it :)
4 REPLIES 4
Rainer von Bongartz
Honored Contributor

Re: Which C compiler I have active???

what and which command will give you the info:


what `which cc`

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


Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
H.Merijn Brand (procura
Honored Contributor

Re: Which C compiler I have active???

bev r3:/tmp 120 > echo "int main(){return(0);}" > xx.c ; cc -v -o xx xx.c
cc: informational note 404: NLSPATH is /opt/ansic/lib/nls/msg/%L/%N.cat:/opt/ansic/lib/nls/msg/C/%N.cat:
cc: informational note 404: INCLUDIR is INCLUDIR=/usr/include
cc: informational note 404: CCOPTS is not set.
/opt/langtools/lbin/cpp.ansi xx.c /tmp/ctmAAAa20965 -$ -D__hp9000s800 -D__hppa -D__hpux -D__unix -D_ILP32 -e -D_PA_RISC2_0 -D_HPUX_SOURCE -D__STDC_EXT__ -D__HP_cc=111108
cc: informational note 411: Entering Preprocessor.
/opt/ansic/lbin/ccom /tmp/ctmAAAa20965 xx.o -Fxx.c -Oq00,al,ag,cn,Lm,sz,Ic,vo,lc,mf,Po,es,rs,sp,in,vc,pi,fa,pe,Rr,Fl,pv,pa,nf,cp,lx,st,ap,Pg,ug,lu,lb,uj,dp,fs,bp,wp,cl,mo,xn,Ex,mp,rp,ap,dn,Sg,pt,kt,Em,pc,np! -ESconstlit -Ae
cc: informational note 404: LPATH is /usr/lib:/opt/langtools/lib:
/usr/ccs/bin/ld /opt/langtools/lib/crt0.o -o xx xx.o -u main -lc
cc: informational note 413: Entering Link editor.
bev r3:/tmp 121 > ls -l `which cc`
lr-xr-xr-t 1 root sys 17 Jun 28 2004 /usr/bin/cc -> /opt/ansic/bin/cc
bev r3:/tmp 122 > swlist | grep -i ansi
B3901BA B.11.11.12 HP C/ANSI C Developer's Bundle for HP-UX (S800)
bev r3:/tmp 123 >

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Joseph Loo
Honored Contributor

Re: Which C compiler I have active???

hi,

how about:

# swlist -l product|grep -i ac++

regards.
what you do not see does not mean you should not believe
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Which C compiler I have active???

cc compiler?

Does HP support cc.
I think it only does aCC and gcc.

Anyways try cc -V
Vibhor Kumar Agarwal