User forums > Using Code::Blocks
Installing Visual Studio C++ 2010
shingetsu:
Hey all. I want to learn DirectX (what I am starting to do) and use code::blocks as an IDE (my all time favorite)... What I see is that it's supposed to automatically detect VC 2003, 2005/08. But as I only recently got Visual Studio 2010 Express (and tis the only one I have), I have no idea on how to set it up with code::blocks, I haven't found any help in google, or the forums here. I have tried selecting VC 2005/2008 and giving the install directory for VC 2010, but it sais some dll file is missing, more precisely mspdb100.dll . I am not sure if more are missing, please help.
stahta01:
I suggest trying using a recent Nightly Build.
http://forums.codeblocks.org/index.php/board,20.0.html
Tim S
shingetsu:
So basically I install the latest nightly Build and try the same thing there? Just checking, don't want to mess anything up @_@.
stahta01:
Yes, partial support was added for Visual Studio C++ 2010.
The project import wizard of Visual Studio C++ 2010 is NOT working.
I do not know of any other issues with a Nightly Build.
I have not used it myself; so, my info is just from reading threads on this site.
Tim S.
shingetsu:
OK, after checking, it STILL didnt work. But I got the regular installation to work (mostly because, getting the nightly, I was no longer afraid of messing things up).
Here is what I've done to make it work, and I hope I'll help someone with this.
Prerequisites:
Microsoft SDKs for Windows (in my case v7.0A)
Visual Studio C++ Express
Code::Blocks (worked with 10.05, idk about other versions)
Steps to compilation:
1. Create a new compiler in the Settings->Compiler and Debugger
2. Setup in Setup->Compiler and Debugger
-Toolchain Executables:
-Compiler Installation Directory: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC (standard in Visual Studio 2010 install)
-C compiler - cl.exe
-C++ compiler -cl.exe
-linker for dynamic libs -link.exe
-linker for static libs - link.exe
-debugger - cdb.exe
-resource compiler - rc.exe
-make program - nmake.exe
-Additional Paths:
-C:\Program Files (x86)\Microsoft Visual Studio 10.0\common7\IDE (standard in Visual Studio 2010 install)
-C:\Program Files (x86)\Microsoft SDKs\v7.0A (standart for Microsoft SDKs install)
-C:\Program Files (x86)\Microsoft SDKs\v7.0A\bin (for a few libraries)
-Search Directories
-Compiler:
-C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
-C:\Program Files (x86)\Microsoft SDKs\v7.0A\include
-Linker:
-C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib
-C:\Program Files (x86)\Microsoft SDKs\v7.0A\lib
-Resource Compiler:
-C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
-C:\Program Files (x86)\Microsoft SDKs\v7.0A\include
And that's it! This should make everything compile ^^.
I just tested a basic hello world on it, and everything works fine. Everything else works as in MinGW (as in define your own add-on libraries and all)
Navigation
[0] Message Index
[#] Next page
Go to full version