complaining about gcc compiler

Steve Blackwell zephod at cfl.rr.com
Thu Sep 16 21:56:38 UTC 2010


On Fri, 17 Sep 2010 02:09:51 +0530
zico banerjee <soumabho1991 at gmail.com> wrote:

> hey guys i am new to fedora13 and after writing a program in c i cant
> compile it using "gcc <file_name>"comand.........it gives "comand not
> found"
> please help...........

Can you give us the exact cmd line you are using? If you have a file
called junk.c, the usual way to compile it is:

$ gcc -o bin_file_name junk.c

Now if you are actually typing:

$ gcc junk.c command param1
Then you will get this:
gcc: command: No such file or directory
gcc: param: No such file or directory

because gcc is expecting a list of c files to compile. Apologies if
this is too obvious.

If gcc is the command not found, then you probably don't have it
installed as others have suggested.

Type:
$ rpm -qa | grep gcc
and if you get no output, you don't have it.

HTH
Steve
-- 
Changing lives one card at a time

http://www.send1cardnow.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20100916/b97f909f/attachment.bin 


More information about the users mailing list