News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

[SOLVED] Switching compiler to VC

Started by antonien, January 28, 2011, 09:05:18 PM

Previous topic - Next topic

antonien

Hello everybody !

Tired of MinGW setting commands that a non wizard can't understand, I decided to switch to VC.

So... I downloaded Visual Studio Express 10, I had it installed and I tried to have Code::Blocks auto-detect VC.
I do not want to use Visual Studio Express : it is far more convenient than Code::Blocks !

Guess what : I couldn't find the correct path !
Where is it hidden ?

Thanks in advance for you answer : I promise I'll worship the guy who helps me for a full year.

Best regards

antonien

antonien

Hu... I guess I am wrong in trying to use the compiler of Visual Express 2010.
Code::Blocks only works with VC9 and Visual 2010 is using VC10, isn't it ?

If that's the case, just tell me. Anyway, I'll try with 2008.

Sorry !

stahta01

Open the folder %VS100COMNTOOLS% the batch file vsvars32.bat is used to set the path correctly.

From my MSVC (10.0) 32 Bit setup.
Compiler search Directories
C:\Program Files\Microsoft Visual Studio 10.0\VC\include

Linker search Directories
C:\Program Files\Microsoft Visual Studio 10.0\VC\lib
C:\Program Files\Microsoft SDKs\Windows\v7.0A\lib

IIRC, From my MSVC (10.0) 64 Bit setup.
Compiler search Directories
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include

Linker search Directories
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib

Note: I am using an CB Nightly Build

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

antonien

Thanks stahta !

Does it mean your nightly build recognize VC10 ? It looks like my standard 10.05 can only detect Visual 2008.

Thanks again.

stahta01

Quote from: antonien on January 28, 2011, 09:51:19 PM
Thanks stahta !

Does it mean your nightly build recognize VC10 ? It looks like my standard 10.05 can only detect Visual 2008.

Thanks again.

It does recognize it; it fails to set the path to the windows SDK; I had to add that manually.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

antonien

Thanks again. I'll try it tonight.
antonien