Hello, I am working on a breakout type game using SDL and c++. This is not my first project, and I am still a little new, but it would be hell-a sweet to implement true physics in my game. So I downloaded Box2D and followed the directions in the read me. I am using VS Express2010, so I ended up with Box2D.sln, ect. I ran the snl, and played around with the test bed and the hello world. All good so far, but then I got it in my head that I should be able to move the .lib file that was made in Box2D/Build/Box2D/Debug, and the Box2D.h file, and toss them in my current projects folder, and link them up. So I added the director where the lib file was under the VC++ Directories, and move the .H file over. Then I removed my current main file just to test the hello world program. Now before I run the debug (f5) I hover over the various members to make sure VS knows what they are. For example, groundBox.SetAsBox(50.0f,10.0f), when hovered over comes up with void b2PolygonShape::SetAsBox(fload32 hx,float32 hy), and one that takes center and angle as well. But when the program runs I get this.
fatal error C1083: Cannot open include file: 'Box2D/Box2D.h': No such file or directory
Now I assure you, the file is there. I have tried both
#include "Box2D\Box2D.h"
or
#include <Box\Box2D.h>
Any idea what I may be doing wrong?
fatal error C1083: Cannot open include file: 'Box2D/Box2D.h': No such file or directory
Now I assure you, the file is there. I have tried both
#include "Box2D\Box2D.h"
or
#include <Box\Box2D.h>
Any idea what I may be doing wrong?