compile

Asked by wakahiu

hi. i am total new to ubuntu, i have done some compiling with windows using borland c compiler. however, i am not able to compile using gcc.
when i typed
 "gcc --version"
i got:
      gcc (Ubuntu 4.3.2-1ubuntu11) 4.3.2
      Copyright (C) 2008 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions. There is NO
       warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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
Kelvin Gardiner (kelvingardiner) said :
#1

To compile

gcc inputfile.c -o outputfile

use gcc --help and man gcc to see the gcc help documentation.

There is a short tutorial here: http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html

Revision history for this message
Cruncher (ubuntu-wkresse) said :
#2

While gcc is the basis for all C and C++ compiling, it is a purely command-line driven tool.
Being used to Brland though, you might have more fun with an IDE, an Integrated Development Environment. Open your "Add/Remove Software" tool and go to the "Programming" section. You'll find several IDEs listed there. Amongst others there's Eclipse (originally for Java, but it has plugins so you can use it for C/C++), KDevelop (for KDE, but will also work with Ubuntu/Gnome), MonoDevelop (especially for C#/.NET, but also others), Code::Blocks IDE, ...

Can you help with this problem?

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

To post a message you must log in.