Suitable Compiler?

This is a discussion on Suitable Compiler? within the Windows Programming forums, part of the Platform Specific Boards category; Hi! I couln't find a Newbies platform, so I hope you don't mind me putting my question here: I am ...

  1. #1
    Registered User
    Join Date
    Aug 2009
    Location
    Antwerp, Belgium
    Posts
    12

    Suitable Compiler?

    Hi!

    I couln't find a Newbies platform, so I hope you don't mind me putting my question here:

    I am going to start programming in C++, mostly calculations, and in the end some simple graphical output (probably wire images, nothing fancy). If I understand correctly from forums and theory, the possible output depends on the compiler (true ?), so I would like to know which could be useful to me. Plus some compilers work better than others and I have no idea or experience for judgement.

    I already installed Code::Blocks for an environment, which seems pretty straight.
    And I tried cygwin, but that's just a fuzzy mess to me.
    My OS is Windows XP, supposedly Microsoft offers a bunch of free C++ - compilers.

    Your advice would be most kind.
    Cheers, Carola

  2. #2
    not-a-geek
    Join Date
    Apr 2004
    Posts
    210
    Quote Originally Posted by Carola View Post
    I already installed Code::Blocks for an environment, which seems pretty straight.
    And I tried cygwin, but that's just a fuzzy mess to me.
    Not sure if I understand you 100%, but there is a version of CodeBlocks that includes MinGW and works out of the box. What's wrong with that option?

    Quote Originally Posted by Carola View Post
    My OS is Windows XP, supposedly Microsoft offers a bunch of free C++ - compilers.
    Microsoft offers various free express version of their Visual Studio family here: http://www.microsoft.com/express/product/default.aspx
    main() { int O[!0<<~-!0]; (!0<<!0)[O]+= ~0 +~(!0|!0<<!0); printf("a function calling "); }

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    If you know your program will never need to be run on anything other than Windows (Mac, Linux, UNIX, BSD, PSPs, iPods...), use Visual Studio.

    Otherwise use an IDE (since you are apparently not comfortable with the command line) that supports GCC - Code::Blocks, Dev-C++, etc. They all use the same compiler "under the hood" (at least by default). GCC is available for just about all platforms under the sun, so it would be easier to port your code to other platforms, should the need arises.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,900
    Quote Originally Posted by Carola View Post
    ...If I understand correctly from forums and theory, the possible output depends on the compiler (true ?)...
    Nope. GUI and that kind of thing is not dependent on the compiler in any way.
    Language features are.

    But to answer your question: to get started, either download Code::Blocks + MinGW or Visual Studio.
    Both will get you started to write your programs in the least amount of time.
    Happy coding.
    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
    Aug 2009
    Location
    Antwerp, Belgium
    Posts
    12
    Thanks a lot for the tips,
    they are very helpful!

    I think I'll go for the C::B MinGW and see where I get

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 02:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 05:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 12:07 PM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM

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