-1

I want to start learning C++, so I downloaded Microsoft Visual Studio 2010 Express, and the entire application freezes and crashes every time I try to compile (debug and release build) something (I have tried running it in Admin Mode). Is there a good alternative compiler that I could still use VS 2010 as the IDE?

Dr Hydralisk
  • 1,171
  • 4
  • 14
  • 22
  • 7
    I wouldn't just brush this off. Compilers don't just crash for no reason, even MS compilers aren't written by amateurs. There's either a problem with your specific system/install, or you've triggered a bug that should be reported to Microsoft. – Nicholas Knight Jun 11 '10 at 03:49
  • 2
    possible duplicate of [Best C++ IDE or Editor for Windows](http://stackoverflow.com/questions/89275/best-c-ide-or-editor-for-windows) – Billy ONeal Jun 11 '10 at 03:54
  • What version of MS Windows are you using? – Alerty Jun 13 '10 at 00:52

6 Answers6

3

I am not sure why it crashes for you. But there are lots of C++ compilers out there.

http://en.wikipedia.org/wiki/List_of_compilers#C.2FC.2B.2B_compilers

And there is a thread below to use GCC with Visual Studio

GCC with Visual Studio?

Community
  • 1
  • 1
bdhar
  • 21,619
  • 17
  • 70
  • 86
2

if its crashing, I would think its more likely the ide is crashing, not the compiler.

you can use the compiler from the command line as per http://msdn.microsoft.com/en-us/library/ms235639(VS.80).aspx

Keith Nicholas
  • 43,549
  • 15
  • 93
  • 156
  • Well I noticed that it is not the compiler (I don't think, I did not run the command line version), but when VS tries to run the compiled executable. When I go to the project folder and run the executable myself it runs fine. So I guess I will just have to deal with this bug. – Dr Hydralisk Jun 11 '10 at 04:47
1

How about bloodshed dev-cpp. It supports cygwin and mingw.

Khushman Patel
  • 1,066
  • 2
  • 13
  • 23
1
  1. NO! There is no other compiler that plugs into VS2010 or VS anything else. Each version of VS is tightly tied to its corresponding version of the Microsoft compiler.

As an alternative, how about:

  1. VirtualBox
  2. Linux
  3. g++, perhaps enhanced with Eclipse / C++ for an IDE.

Cost: $0.

bmargulies
  • 97,814
  • 39
  • 186
  • 310
  • I'd add that, as of 2021, this answer is no longer correct, (and if this MS blog is to be believed, it was no longer true in 2017: https://devblogs.microsoft.com/cppblog/use-any-c-compiler-with-visual-studio/). Well, it's still correct for VS2010, but not for more recent versions of Visual Studio. It is now apparently possible to use either GCC or Clang with Visual Studio (though I admittedly didn't try either). – antred Apr 19 '21 at 08:00
0

Eclipse for C++

herbertD
  • 10,657
  • 13
  • 50
  • 77
0

If you want something with IDE, I would suggest g++, Eclipse and CDT plugins. Works quite well.

You can use g++ on command line if you are comfortable that way.

Jack
  • 1,398
  • 3
  • 16
  • 26