Compiler? Microsoft Visual Studio C++ 2010 / Code::Blocks

closed account (4y5Ly60M)
Good evening "my time". I would like to compile my programs for "any OS" Windows/Unix etc. which would be the best IDE, I hear that VS C++ 2010 is windows programming and compiling only?? is that true?

Greetings,
ACPlusPluser
Last edited on
You are not required to USE every tag possible.

For your question: MSVS compiler cannot compile program for Unux, but you still can use it as IDE and compile UNIX code on its native compiler. However it is too easy to write non-standard code in MSVS and 2010 one does not support C++11. So I suggest using multiplatform compiler like GCC or Clang with IDE like Code::Blocks or Eclipse or NetBeans
My favorite cross-platform IDE at the moment is CodeLite

CodeLite Open Source IDE
http://codelite.org/

Like Code::Blocks, etc. this can be used with your compiler of choice.

But personally I use CodeLite on Linux and Visual Studio on Windows, even though I've got to take care to use standard compliant C++, as the diagnostics provided by the Microsoft tool are better.

(Note that Visual C++ can be used with the /Za switch to disable language extensions, if you're not using Win32 headers. And the g++ compiler needs to be used with the appropriate -std' switch -- -std=c++03, -std=c++11 -- to stop it letting people get away with C99-isms, like variable sized arrays.)

And apparently GCC has overtaken Clang when it comes to C++11 conformance, if that is a concern for you.

C++11 compiler support shootout: Visual Studio, GCC, Clang, Intel
http://cpprocks.com/c11-compiler-support-shootout-visual-studio-gcc-clang-intel/
March 14, 2013

It looks like GCC is overtaking Clang as the compiler with the best C++11 support.

Andy

PS You might also want to check the following earlier threads, for which IDE is best to use (with the GCC compiler, probably).

C++ IDE
http://www.cplusplus.com/forum/general/89556/
Jan 6, 2013

Best C++ Compiler/IDE..
http://www.cplusplus.com/forum/beginner/78825/
Sep 10, 2012

Favorite Text Editor/IDE for C++?
http://www.cplusplus.com/forum/lounge/72806/
Jun 8, 2012

What IDE should I use?
http://www.cplusplus.com/forum/general/62858/
Feb 24, 2012

Looking for an IDE
http://www.cplusplus.com/forum/beginner/62279/
Feb 18, 2012

Which IDE to use?
http://www.cplusplus.com/forum/beginner/46887/
Jul 17, 2011

Which IDE? [Windows Vista 64-bit]
http://www.cplusplus.com/forum/beginner/26887/
Aug 2, 2010

Plus earlier...
Last edited on
closed account (4y5Ly60M)
Thanks for your quick response, I decided to use Code::Blocks.
I like the feature to select any compiler in my IDE.

Greetings,
ACPlusPluser
Last edited on
Topic archived. No new replies allowed.