checking of GNU C Complier version


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers checking of GNU C Complier version
# 1  
Old 05-08-2002
Question checking of GNU C Complier version

Hi,

How do i check the GNU C Complier my system is running?

thanks
jennifer
# 2  
Old 05-08-2002
Cant understand you question, are you saying you want to find out whther your system contains GNU C Compiler or you want to code a c program to check whther your system is running or not ?
Neway if you wanted to check your system contains c compiler its simple, try to do a man gcc or gcc --version if your get any output then your system is configured with c compiler, instead your recieve a unknown command means your system doesnt have a GNU C compiler. Do post back if this does help.
# 3  
Old 05-08-2002
Hi killerserv

Yes, this method does work for some of my machine.

Why is it that I have the C complier residue in the /usr/local for all my Ultra1 & 2 machine but when I issue the "gcc --version", some machine reflects me the version wherelse some response " gcc:command not found". I used the same user account throughout to verify the version.

regards
jennifer
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Version checking

Hi everyone, I have binary file that call “app”, this file must be bind with “config file” to run. problem is I have 10 different version of “app”, in different path with different “config file”! This command show version of “app”: root ~: /home/user1/app -version 2.7 The only way... (30 Replies)
Discussion started by: indeed_1
30 Replies

2. Shell Programming and Scripting

Backward compatibility issue with GNU bash, version 4.3.42(5)

Hi, I have made a snake game on below bash version. But it is not backward compatible. Can someone suggest a version which is most commonly used and is backward compatible so that i can change my code and share again? I have attached the game script. If someone can run it please also suggest... (5 Replies)
Discussion started by: amit14august
5 Replies

3. AIX

Checking xlc compiler version

Hi, Below is output of lslpp command. bash-3.00# lslpp -L | grep xlC xlC.aix50.rte 11.1.0.1 C F XL C/C++ Runtime for AIX 5.3 xlC.cpp 9.0.0.0 C F C for AIX Preprocessor xlC.msg.en_US.cpp 9.0.0.0 C F C for AIX... (2 Replies)
Discussion started by: manoj.solaris
2 Replies

4. Shell Programming and Scripting

Copy a file from directroy/ prior version to the directory/ new version

How to copy a file from directroy/ prior version to the directory/ new version automatically. (4 Replies)
Discussion started by: roy1912
4 Replies

5. AIX

Help with AIX XL C++ complier: app exit before main program

I have two shared libraries, A, B(B depents on A, both linked with -G option which means they're rtl enable), B's toc size is bigger than 64K(-bbigtoc), while A's toc size smaller than 64K. Then I write a "Hello, world" example E, and link with A and B. Link cmd 1: xlC128_r -o E E.o -lA -lB... (0 Replies)
Discussion started by: jackliang
0 Replies

6. AIX

Not picking up the GNU version of make

Hi team, I am new to unix,and need your advice on the below. I am using aix5.3 and have installed make-3.82 on the server. I need to use gmake for configuring and installing a package ,but it is giving error at the below root@sapsrp:/usr/tmp/xymon-4.3.2 # ./configure.server ... (7 Replies)
Discussion started by: sonal kumar
7 Replies

7. Solaris

Finding difficult in installing gcc-3.4.6 complier on Solaris 10.

Hi All, Can anyone help me in installing gcc-3.4.6 complier on Solaris 10. 1. I have downloaded the gcc-3.4.6.tar.gz from one of the free share 2. While downloading its is seen that it is renamed to gcc-3.4.6.tar.tar 3. On solaris machine I renamed it gcc-3.4.6.tar.gz from gcc-3.4.6.tar.tar... (4 Replies)
Discussion started by: susainaj
4 Replies

8. AIX

checking the version revisions of a java file inside the ear using KSHELL in AIX.

consider on day1, in PVCS repository we have java files like a.java,b.java with version revision 1.0, through ANT build script we have compiled and created an ear,named c.ear in AIX build server.we have transfered this ear from build server to portal server through FTP using KSHELL. consider... (0 Replies)
Discussion started by: kareemaashik
0 Replies

9. Shell Programming and Scripting

Single v. double quotes in sed (GNU utilities for Win32 version)

I'm using sed for Windows at a WinNT command prompt. Wrapping the expressions with single quotes doesn't work. I have to use double quotes. Is this the norm for the Windows implementation? (2 Replies)
Discussion started by: daddydojo
2 Replies

10. Programming

I need a pro*c complier..

hi all, i need a pro*c compiler ...it's a freeware or castable one...if it is freeware ,then where will we get.... thanks in advance sarwan (4 Replies)
Discussion started by: sarwan
4 Replies
Login or Register to Ask a Question