gcc compiler for windows?

This is a discussion on gcc compiler for windows? within the C Programming forums, part of the General Programming Boards category; Hi all, Currently, I have been compiling my school projects on our unix machines, ya know, connecting via x windows ...

  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    11

    gcc compiler for windows?

    Hi all,

    Currently, I have been compiling my school projects on our unix machines, ya know, connecting via x windows or putty as a terminal, and also using an FTP program to transfer files.

    More importantly, I have been doing this because I don't have any Microsoft Visual Studio on my home computer, so I use the Unix's GCC to compile my programs and then just run them on those school servers. (note, I tried Visual Studio Express, but it is so confusing, I just want to compile damnit!)

    Does anyone have a recommendation for a gcc compiler on windows? I see a few out there (mostly MinGW) but I want to know which people prefer.

    I'd love to get gcc on my home computer (like I was able to do with java and perl) so that I can work on my projects directly on my home computer. Edit in notepad, go over to the command prompt window type "gcc homework.c" and then run "a.out" and then flip back to my homework folder and see the results in windows (without having to FTP stuff back down).

    What works for you? What is easy to install? What is NOT bloated with lots of crap like Microsoft's free Visual Studio Express (or whatever it is called)?

    THANK YOU!!!

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,744
    Quote Originally Posted by td4nos
    Does anyone have a recommendation for a gcc compiler on windows? I see a few out there (mostly MinGW) but I want to know which people prefer.
    I prefer to use the official MinGW port of GCC, with MinGW's MSYS where necessary. I believe that there is at least one other user here who prefers to use this unofficial MinGW distribution that provides more updated versions of the tool chain. You could also use the tool chain via Cygwin.

    Quote Originally Posted by td4nos
    What works for you? What is easy to install?
    MinGW installation is quite easy: just download the archives, extract them, and place the bin directory in the path, but the problem is knowing what to download. The installer helps by allowing you to select what you want, then it downloads and extracts the archives for you (and changes the path too, I think). The nuwen.net distribution has pretty clear instructions along the same lines.

    Whatever you use, I suggest checking the programs that you write with the compiler on your school's computer just before you submit your program, just in case there is a problem due to differences in compiler version.

    Quote Originally Posted by td4nos
    (note, I tried Visual Studio Express, but it is so confusing, I just want to compile damnit!)
    What is NOT bloated with lots of crap like Microsoft's free Visual Studio Express (or whatever it is called)?
    I am curious as to what problems you faced when using it.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    C++11 User Tux0r's Avatar
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    135
    Quote Originally Posted by laserlight View Post
    I am curious as to what problems you faced when using it.
    Probably unable to compile Hello World as you need to start an empty project first, it's a bit confusing.

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,618
    Quote Originally Posted by td4nos View Post
    (note, I tried Visual Studio Express, but it is so confusing, I just want to compile damnit!)
    Create a project, add your files, go to build -> build solution. Done. Simple.

    What works for you?
    Visual Studio.

    What is easy to install?
    Visual Studio.

    What is NOT bloated with lots of crap like Microsoft's free Visual Studio Express (or whatever it is called)?
    Visual Studio.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    1
    Quote Originally Posted by td4nos View Post
    Does anyone have a recommendation for a gcc compiler on windows? I see a few out there (mostly MinGW) but I want to know which people prefer.

    I'd love to get gcc on my home computer (like I was able to do with java and perl)
    If you have Strawberry Perl for Windows, you already have Mingw installed, I used it for ex. to compile new version of Perl. With relatively fresh ActivePerl you can do `ppm install gcc` and it will install Minwg, but I never tried this.

  6. #6
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    Does anyone have a recommendation for a gcc compiler on windows?
    Visual Studio.
    Last time I checked, Visual Studio is not a Windows port of GCC (would love to be proven wrong...).

    Create a project, add your files, go to build -> build solution. Done. Simple.
    Apparently
    Code:
    gcc homework.c
    is simpler for him. Ho ho ho.



    there is at least one other user here who prefers to use this unofficial MinGW distribution
    That would be me . That distribution used to use a newer version of GCC (but I think the official distribution has GCC 4.3 now as well. It also has a bunch of commonly used libraries included (which can be good or bad depending on your POV) - Boost, SDL, and some multimedia formats libraries.

  7. #7
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,618
    Quote Originally Posted by cyberfish View Post
    Last time I checked, Visual Studio is not a Windows port of GCC (would love to be proven wrong...).
    It was not in response to that question, if you look carefully on what was quoted.

    Apparently
    Code:
    gcc homework.c
    is simpler for him. Ho ho ho.
    That doesn't matter. What I was trying to prove is that compiling from VS is not as difficult as the OP believes or tries to share.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    Visual Studio.
    Visual Studio?
    Visual Studio.
    Visual Studio?
    Visual Studio.
    Visual Studio?

    Sing it!

  9. #9
    C++11 User Tux0r's Avatar
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    135

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Quick Compilation Question
    By chacham15 in forum C Programming
    Replies: 10
    Last Post: 10-12-2008, 08:15 PM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. Run time differences in Linux gcc versions
    By circuitbreaker in forum C++ Programming
    Replies: 7
    Last Post: 02-14-2008, 10:09 PM
  4. Dev C++ Compiler, Indentation?
    By Zeusbwr in forum C++ Programming
    Replies: 3
    Last Post: 10-21-2004, 06:13 AM
  5. gcc not for C++?
    By tin in forum C++ Programming
    Replies: 4
    Last Post: 09-15-2004, 08:26 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21