User forums > Using Code::Blocks

Installing Visual Studio C++ 2010

<< < (2/2)

Audiodroid:
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

MortenMacFly:

--- Quote from: Audiodroid on October 14, 2011, 02:07:52 pm ---Can I turn those warnings off somewhere? An answer to this question would be the 2nd greatest help I would get today. ;-)

--- End quote ---
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.

bkw:

--- Quote from: shingetsu on July 24, 2011, 12:25:10 am ---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)

--- End quote ---

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




Navigation

[0] Message Index

[*] Previous page

Go to full version