How to configure CodeBlocks development environment with VC toolset - ShrekHome/greatsoft.github.io GitHub Wiki
How to configure CodeBlocks development environment with VC++ toolset
Suppose you have VC++(such as 2010) and the latest CodeBlocks installed on your machine.
-
Click Settings, select Compiler
-
From Global compiler Settings - Selected compiler, choose Micrsoft Visual C++ 2010
-
From tab pages Search directories
-
Compiler, set C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
-
Linker, set C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib
-
Resource compiler, set C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
-
-
From tab page Toolchain executables, set Compiler's installation directory to
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
from tab page Program Files, set
- C compiler: cl.exe
- C++ compiler: cl.exe
- Linker for dynamic libs: link.exe
- Linker for static libs: link.exe
- Debugger: GDB/CDB debuger : Default
- Resource compiler: rc.exe
- Make program: namke.exe
from tab page Additional Paths, set
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin
Now, you can build your C, C++ programs with VC++ compiler and linker in CodeBlocks. If you want to debug in CodeBlocks, you need to add the path to cdb.exe in the following location.
-
Click Settings, select Debugger, then the Debugger settings dialog pop up,
- choose GDB/CDB debugger - Default from the left pane
- set Executable path: to C:\Program Files\Debugging Tools for Windows (x64)\cdb.exe
If you don't have Debugging Tools for Windows installed, you need to install either 32 bit or 64 bit version of Windows SDK for Windows 7 and .NET Framework 4 which can be downloaded from Microsoft developer's website.