I need to change the compiler to VS

I made a sudoku solution using SDL (for GUI) in the VCpp 2010 IDE.

The program compiles without errors and works fine. However, I cannot transfer the compiled executable to some people because they do not have msvc dll on their PC.

It seemed to me that I can use devC ++, which compiles with GCC, but this IDE does not look right and simply does not allow me to include some header files. I also have some problems setting up SDL extensions.

So, is there a way to change the VisualStudio compiler to GCC?

I really need to stay with VS because it is easy to use and there is a lot of online support.

Thanks in advance:)

+7
source share
3 answers

Short answer: no, you cannot change cl.exe (MS cc compiler) with gcc. Or try it. (You can use a compatible compiler such as the Intel C compiler)

Long answer: you do not need it. Use a static linked runtime library and you no longer have ms dependency dlls (see This answer: How to create a fully statically linked .exe file with Visual Studio Express 2005? )

Or redistribute the VC ++ runtime with your application. It's free ( http://www.microsoft.com/en-us/download/details.aspx?id=26999 )

+9
source

You do not need to change the compiler - they need to download the redistributed Visual Studio 2010: http://www.microsoft.com/en-gb/download/details.aspx?id=5555

+3
source

In short: no. You cannot just use the GCC compiler in Visual Studio.

Long version: you can use the Makefile project to run GCC, but then you lose some of the benefits of using Visual Studio.

+1
source

All Articles