Howto: Visual Studio

This is meant to be a guide on how to get Box2D up and running for the first time in Visual Studio. I am using using Visual Studio 2008 but if you are using 2005 still the set up isn't really any different the menus just may be in a different spot.
This is my first tutorial feel free to post a reply if I missed anything.

Step one: Download the Box2D source. I like to keep my dev libraries in my C directory but you can extract it anywhere you please.

Step two: goto C:\Box2D_v2.0.1\Box2D\Build\VC8 and open the Visual Studio Solution file you find there. Then Press f7 to build the solution. Check C:\Box2D_v2.0.1\Box2D\Library you should notice a box2d_d object file library that was generated from building the solution.

Step three: Linking to the library :
Click Tool>Options
Projects and Solutions > VC++ Directories >show directories for: Library files
Image
Add a new folder and select your \Box2D\Library folder
Image
Do the same for Include
Almost Done!

Step four: Creating your first Box2D project:
File>New>Project>VisualC++>Win32 Win32 Console Application Click the Empty Project check box and select finish.
Now click Project>Properties>Configuration Properties>Linker>Input and click on 'Additional Dependencies'
Type: 'box2d_d.lib'
Image

Now rightclick on Source Files and then Add Existing Item and add the HelloWorld.cpp file found in the example folder.
Press f5! Congrats your first Box2D project is up and running!

Nathan Schwermann
http://www.schwiz.net
[email hidden]
This is brilliantly clear. Would you mind putting it up on the wiki?

Also, not that I care, but alt-printscreen will automatically frame the active window for you.
Thanks, yeah i would be happy to post this on the wiki as well, and thanks for the heads up on alt+print scr I had no idea 😛

edit: wiki edited
http://www.box2d.org/wiki/index.php?tit ... structions
Thanks for putting this on the Wiki. I'm sure this will help a lot of people.
This doesn't seem to work. I followed each step exactly but it gives me this error:

LINK : fatal error LNK1104: cannot open file 'box2d_d.lib'

Am I missing something?

Edit: Whoops. I totally missed the first sentence. Hahah, Oh my.
Does anyone know how to fix the problem with vs2008 sp1's whacked-out conversion wizard? It just flashes for a millisecond and doesn't do any converting...... is there a non-microsoft conversion tool or something? this is annoying!

Original thread: https://box2d.org/forum/viewtopic.php?t=767