Thread: Wheres a good linux C compiler?

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    41

    Question Wheres a good linux C compiler?

    Wheres a good linux C compiler? My dad is giveing me a computer with linux(Knoppix) on it for me to program, and now I need a compiler so I can continue programing!

    THX

  2. #2
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Try GCC .
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    41

    Cool

    I'm on my linux mechine right now and I checked the shell and typed in 'whereis gcc' and it came up with 'gcc: /usr/bin/gcc /usr/share/man/man1/gcc.1.gz' now how do I compile?

  4. #4
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    is any one using intel's compiler?

    i know alot of programs cant be recompiled with it since they were designed for gcc, but how about newer programs? i havnt really written anything big enought to tell. i heard its great on p4.

  5. #5
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807
    Read the GCC documentation, it's very easy. One way to compile a file is: gcc file.c -o file

    Of course you can use some parameters witch might be needed to your program, see the documentation.

  6. #6
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438
    GCC is the best compiler IMO.

  7. #7
    I've heard the Intel C++ Compiler is pretty sweet. I myself use GCC 3.2.2. I've never seen anyone with Linux that didn't have a version of GCC installed. Unless they uninstalled it after they installed Linux (you need GCC just to get past stage 1 stuff).

    Oh, and if you want a IDE look for KDevelop. Don't download the unstable versions (Gideon), because it is utter crap right now, and it is VERY glitchy. Get version 2.x.

  8. #8
    Registered User
    Join Date
    Apr 2003
    Posts
    2

    GCC...

    The best compiler is going to be GCC. There is no good reason for most users to go to anything else. As far as portability goes almost every Linux user who has a compiler installed has GCC, therefore moving source code to another box wouldn't be a problem. Almost any application you download that is written in C for Linux was developed using GCC and there probably is a reason for that.

    One of the beauties of Linux is that almost everything is designed to be portable. Unlike Windows which has so many compilers which often makes compiling somebody else's source code a real pain.

    GCC

  9. #9
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Originally posted by frenchfry164
    I've never seen anyone with Linux that didn't have a version of GCC installed. Unless they uninstalled it after they installed Linux (you need GCC just to get past stage 1 stuff).
    I have. I've done it, without knowing what I was doing. You can install RedHat 8 w/out GCC - maybe the installation process deletes it, but whatever.
    Away.

  10. #10
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    maybe the installation process deletes it
    no the rpm just copies files over, the source rpms are rarely used.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How good is the compiler of VS .NET Pro, really?
    By lightatdawn in forum Windows Programming
    Replies: 5
    Last Post: 03-23-2004, 02:58 PM
  2. Where can i find a good compiler to D/L?
    By ray in forum C++ Programming
    Replies: 1
    Last Post: 11-27-2002, 12:11 PM
  3. need good compiler for pure DOS applications
    By toaster in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 04-28-2002, 06:18 PM
  4. Good compiler for OpenGL (besides MS Visuial c++)
    By Crossbow in forum Game Programming
    Replies: 1
    Last Post: 12-20-2001, 04:44 PM
  5. where can i find a linux C++ compiler?
    By Unregistered in forum Linux Programming
    Replies: 4
    Last Post: 11-26-2001, 10:40 AM