Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: shingetsu on July 23, 2011, 08:06:02 pm
-
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.
-
I suggest trying using a recent Nightly Build.
http://forums.codeblocks.org/index.php/board,20.0.html
Tim S
-
So basically I install the latest nightly Build and try the same thing there? Just checking, don't want to mess anything up @_@.
-
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.
-
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)
-
You DID help someone with this. :P
Thanks A LOT!
My "Hello World" projects also runs now.
However I get 491 warnings from the VC STL implementation now, such as:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\wchar.h|109|warning C4820: '_wfinddata64i32_t' : '4' bytes padding added after data member '_wfinddata64i32_t::attrib'|
...
Can I turn those warnings off somewhere? An answer to this question would be the 2nd greatest help I would get today. ;-)
Cheers
Audiodroid
-
Can I turn those warnings off somewhere? An answer to this question would be the 2nd greatest help I would get today. ;-)
A solution would be to find the #pragma for this warning to turn it off. Inspecting the documentation of the VC(++) compiler will tell. This is (however) not within the scope of this forum. You should ask in a VC(++) related forum.
-
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)
For me those paths are slightly different:
You have:
C:\Program Files (x86)\Microsoft SDKs\v7.0A
I have:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A
The current 13.12-RC1 still does not auto-detect these, or the main C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC path.
Also, to add (some) MFC support while still free, Install WDDK, then add:
Search directories
Compiler
C:\WinDDK\7600.16385.1\inc\mfc42
Linker
C:\WinDDK\7600.16385.1\lib\Mfc
Resource Compiler
C:\WinDDK\7600.16385.1\inc\mfc42