launching gcc

Asked by Rahim

how do you launch gcc in the terminal?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Onkar Shinde (onkarshinde) said :
#1

Have you installed the package build-essential? Once you do that, you have to just type command 'gcc' in terminal. You can open terminal from menu Applications -> Accessories ->Terminal

Revision history for this message
Rahim (rahimamir786-gmail) said :
#2

it says, no input files..........

Revision history for this message
Jensen Somers (jsomers) said :
#3

You need to specify the input files. GCC is a command line compiler so don't expect any GUI to pop up.

gcc file_1.c file_2.c -o result

Revision history for this message
Rahim (rahimamir786-gmail) said :
#4

i s ther any other gui compiler, because i can not understand the one....

Revision history for this message
Jensen Somers (jsomers) said :
#5

You could use a tool like Anjuta or KDevelop. They are IDE's much like Visual Studio who provide a graphical wrapper around GCC.

Tools like SlickEdit (which is commercial software) also provide this features.

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) said :
#6

Personally, I think that learning the command line in this case is necessary. A rather verbose manual to GCC is available at http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/

Can you help with this problem?

Provide an answer of your own, or ask Rahim for more information if necessary.

To post a message you must log in.