LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to compile?? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-compile-33607/)

Skibz 10-24-2002 07:02 AM

how to compile??
 
i've got a C file I want to compile, the readme says to type

CC filename.C

but when I type that in Konsole it says CC No command or something. Do I need to download GCC ? I'm running winlinx 2003, thanks!

0x0001 10-24-2002 08:48 AM

cc stands for c-compiler. Most often however linux distros are shipped with the gnu c-compiler leading to a binary name of gcc.
Sooo you should try:

gcc filename.c

btw: a .C (as opposed to .c) file is c++ or am i wrong?

so alternatively you should try g++.

if those do not work, you might have to dl gcc.

Skibz 10-24-2002 10:11 AM

thanks for your help, but that hasn't worked :/ So I guess i'll have to download GCC, thanks anyway.

Thymox 10-24-2002 10:57 AM

It should be on your installation CD(s). Which distro are you using?

Skibz 10-24-2002 11:51 AM

to be honest, i'm not really sure, i'm new to all this linux stuff. I just downloaded the smaller sized non supported copy of winlinux 2003.

Skibz 10-24-2002 12:28 PM

i've just downloaded gcc-3.1.tar

and i was wondering if anyone could give me any pointers on how to install gcc, thanks.

acid_kewpie 10-24-2002 01:30 PM

it will have all the documentation inside it. please learn to search the site for basic problems like installing from source.


All times are GMT -5. The time now is 01:31 PM.