After performing the configuration and generation steps with CMake, and building the solutions (did it for both static and shared libraries, in Debug and Release, though now I know there isn't a difference) I copied and pasted the Box2D.lib and Box2D.dll files to a Box2D/lib folder.
In VS, for my project I've added the Box2D/lib directory as an additional library directory in the configuration option 'VC++ Directories' for both Debug and Release configurations. Under the Linker tab I've put Box2D.lib as an additional dependency for both configurations. I've also copied the dll to the same folder as the binary.
However, I still get an unresolved external symbol error. What am I missing?
Edit: Problem was I had compiled without setting Testbed or HelloWorld as the startup project.
In VS, for my project I've added the Box2D/lib directory as an additional library directory in the configuration option 'VC++ Directories' for both Debug and Release configurations. Under the Linker tab I've put Box2D.lib as an additional dependency for both configurations. I've also copied the dll to the same folder as the binary.
However, I still get an unresolved external symbol error. What am I missing?
Code:
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::~b2World(void)" (??1b2World@@QAE@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::b2World(struct b2Vec2 const &,bool)" (??0b2World@@QAE@ABUb2Vec2@@_N@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::b2World(struct b2Vec2 const &,bool)" (??0b2World@@QAE@ABUb2Vec2@@_N@Z) referenced in function _main
Edit: Problem was I had compiled without setting Testbed or HelloWorld as the startup project.