Thread: Programs to run C applications

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    33

    gcc compiler

    How do i install or use gcc compiler on my computer?

    THanks
    Last edited by Mak; 03-01-2004 at 12:00 PM.

  2. #2
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501
    depends on the os, if it is linux, you probably already have it, but If you are using windows, download an IDE that uses it. Dev-c++ is one I recommend (www.bloodshed.net). If you are using linux, try 'gcc' and see what happens. If that doesn't work, you have to use whatever mechanism your distribution gives you to get it. Perhaps emerge, atp-get, rpms, etc.
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    channel: #c

  3. #3
    Registered User scrapedbr's Avatar
    Join Date
    May 2003
    Posts
    19
    Download gcc or other compiler from:
    http://www.gnu.org/directory/GNU/

    all the documentation is available.

    an example that you can use is:
    gcc -o file.c -WAll

    -o = create objetc file (executable)
    -Wall = warning all (believe me, sometimes you will not want to use it!)
    cscience.org
    gobolinux.org
    Gobolinux user: 00101100

  4. #4
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501
    an object file is not the same as an executable because it has the option to lack a main(). the -o option is what gcc uses to determin the (o)utput file name. You can still use the -o option and not create an executable. (gcc -c test.c -o test.o). This allows you to link later to an executable.
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    channel: #c

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Visual c++ 2005 express edition to run .c files
    By the_fall_guy in forum C Programming
    Replies: 4
    Last Post: 04-05-2007, 12:33 PM
  2. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  3. Running programs - few stupid mistakes
    By Korhedron in forum C++ Programming
    Replies: 14
    Last Post: 03-10-2004, 03:10 PM
  4. how to compile & run c programs in unix?
    By Unregistere in forum C Programming
    Replies: 2
    Last Post: 10-09-2002, 10:53 PM
  5. Visual J#
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 10-08-2001, 02:41 PM