Author Topic: [SOLVED] Switching compiler to VC  (Read 5714 times)

Offline antonien

  • Multiple posting newcomer
  • *
  • Posts: 24
[SOLVED] Switching compiler to VC
« 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
« Last Edit: January 29, 2011, 05:03:58 pm by antonien »

Offline antonien

  • Multiple posting newcomer
  • *
  • Posts: 24
Re: Switching compiler to VC
« Reply #1 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 !

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: Switching compiler to VC
« Reply #2 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline antonien

  • Multiple posting newcomer
  • *
  • Posts: 24
Re: Switching compiler to VC
« Reply #3 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: Switching compiler to VC
« Reply #4 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline antonien

  • Multiple posting newcomer
  • *
  • Posts: 24
Re: Switching compiler to VC
« Reply #5 on: January 29, 2011, 09:13:43 am »
Thanks again. I'll try it tonight.
antonien