Author Topic: Installing Visual Studio C++ 2010  (Read 25797 times)

Offline shingetsu

  • Single posting newcomer
  • *
  • Posts: 3
Installing Visual Studio C++ 2010
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7699
    • My Best Post
Re: Installing Visual Studio C++ 2010
« Reply #1 on: July 23, 2011, 08:26:17 pm »
I suggest trying using a recent Nightly Build.

http://forums.codeblocks.org/index.php/board,20.0.html

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 shingetsu

  • Single posting newcomer
  • *
  • Posts: 3
Re: Installing Visual Studio C++ 2010
« Reply #2 on: July 23, 2011, 10:02:29 pm »
So basically I install the latest nightly Build and try the same thing there? Just checking, don't want to mess anything up @_@.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7699
    • My Best Post
Re: Installing Visual Studio C++ 2010
« Reply #3 on: July 23, 2011, 11:18:09 pm »
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.
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 shingetsu

  • Single posting newcomer
  • *
  • Posts: 3
Re: Installing Visual Studio C++ 2010
« Reply #4 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)

Offline Audiodroid

  • Single posting newcomer
  • *
  • Posts: 7
Re: Installing Visual Studio C++ 2010
« Reply #5 on: October 14, 2011, 02:07:52 pm »
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Installing Visual Studio C++ 2010
« Reply #6 on: October 14, 2011, 02:15:51 pm »
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

bkw

  • Guest
Re: Installing Visual Studio C++ 2010
« Reply #7 on: December 11, 2013, 07:51:35 pm »
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