Code::Blocks Forums

User forums => Help => Topic started by: antonien on January 28, 2011, 09:05:18 pm

Title: [SOLVED] Switching compiler to VC
Post by: antonien on January 28, 2011, 09:05:18 pm
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
Title: Re: Switching compiler to VC
Post by: antonien on January 28, 2011, 09:23:25 pm
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 !
Title: Re: Switching compiler to VC
Post by: stahta01 on January 28, 2011, 09:24:26 pm
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.
Title: Re: Switching compiler to VC
Post by: 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.
Title: Re: Switching compiler to VC
Post by: stahta01 on January 29, 2011, 02:42:18 am
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.
Title: Re: Switching compiler to VC
Post by: antonien on January 29, 2011, 09:13:43 am
Thanks again. I'll try it tonight.
antonien