Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13

Thread: C Compiler

  1. #1
    Regular Coder
    Join Date
    May 2003
    Location
    34° 54' N 82° 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts

    C Compiler

    Can someone recommend a C compiler for windows with a link provided? Thanks.
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.bloodshed.net/devcpp.html

    it's the sex. only good C/C++ IDE ive found to date. (even in my n00bness, i'd recomend you learn C++ first)
    photoshop too expensive? use the GIMP! www.gimp.org

  • #3
    Regular Coder
    Join Date
    May 2003
    Location
    34° 54' N 82° 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, I just happened to pick the book up at a the library today and it was on C, so I'd figure I'd give it a shot. Maybe I'll take C++ when that book comes in.

    Thanks
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #4
    Regular Coder
    Join Date
    Feb 2003
    Location
    California
    Posts
    925
    Thanks
    0
    Thanked 0 Times in 0 Posts
    C++ is backwards compatible with C but there are some massive differences if you start with C++ and revert to C. C++ in my oppinion is a great place to start as well...

    Jason

  • #5
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,106
    Thanks
    11
    Thanked 101 Times in 99 Posts
    Borland do a set of free tools including a compiler (all command line tools) , also think about getting Cygwin if you like to play with the command line, also google for ming.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    bloodshed DEV-c++ is an IDE for mingw, and borland tools are a pain to use seeing as it's command line.

    what are you peeps fav compilers(commerical and free included)
    photoshop too expensive? use the GIMP! www.gimp.org

  • #7
    JPM
    JPM is offline
    Regular Coder
    Join Date
    Mar 2004
    Location
    Norway
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I downloaded the bloodshed DEV-c++ compiler. And I just started a tutorial, but how do I view the results of what I do.. Like if i type :
    int main()
    {
    cout<<"TEST TEST ";
    return 0;
    }

    into the compiler. I try pressing the run command, but nothing happens..
    <JPM />

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thats because you have to compile the program before runing it
    Execute->compile: compiles your code into computer code
    Execute->Run: runs program, after it has been compiled
    Execute->Compile and Run: ...
    Execute->Rebuild all: will entirly recompile your project (normal compile doesn't always recompile all files)
    Execute->Debug: debug your program
    photoshop too expensive? use the GIMP! www.gimp.org

  • #9
    JPM
    JPM is offline
    Regular Coder
    Join Date
    Mar 2004
    Location
    Norway
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts
    But all that happens when I run the program (after it has been compiled) is a command promt shows up for about 0.1 seconds.

    I have no idea what Im talking about, but should't something show the result in some way...?
    <JPM />

  • #10
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That command prompt is showing up, printing out "TEST TEST" just like you programmed it to, and then closing because your program is finished. If you open a command prompt, and run the exe you built from there you'll see the "TEST TEST". Or you could add some code to make the program pause before it exits and see it when you run from the IDE as well.

    shmoove

  • #11
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post

    Arrow

    Yeah, typically most people use system("PAUSE") at the end of their main() (before return of course )..
    Omnis mico antequam dominus Spookster!

  • #12
    Regular Coder
    Join Date
    Nov 2002
    Posts
    672
    Thanks
    1
    Thanked 1 Time in 1 Post
    I'm not a fan of DevCPP. Although it's one of the only compilers I found that doesn't require a compiler to compile itself (chicken...egg loop). I always got lost with non-gui compilers. But DevCPP seems overbloated. Just to save a file, it wants me to give it a "project name" (total waste of time). And the real pain is that the CPP file cannot have the same name as the project name. So I find myself making random names for the CPP file since I wasted the meaningful name on the project name. All I wanted was to make a CPP file and compile it, while having the luxuries of syntax highlighting and col/row count. This and more can be found in Editplus. I'm no C expert but I prefer something that doesn't make me more confused than I already am. Errors such as "return value is not an int" in void functions is a total mess.

  • #13
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    devcpp isn't technicaly a compiler, its an IDE which uses the mingw compiler. for small projects it's true that its a pain to have to use projects(and MSVC++ is the same apparntly) but if your going to compile a small project just use mingw without going through devcpp. why is "return value is not an int" in void functions is a total mess? thats the compiler result not devcpp

    on a sidenote, any cheapies want to compile with MSVC++
    http://msdn.microsoft.com/visualc/vctoolkit2003/
    it's what borland free compiler is the borland C++ builder
    photoshop too expensive? use the GIMP! www.gimp.org


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •