Re: complaining about gcc compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 17 Sep 2010 02:09:51 +0530
zico banerjee <soumabho1991@xxxxxxxxx> 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

Attachment: signature.asc
Description: PGP signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux