Code: Select all
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class irr::newton::IBody * __thiscall irr::newton::IWorld::createBody(class irr::scene::ISceneNode *,class irr::scene::IMesh *,enum irr::newton::E_BODY_TYPE,float,class irr::core::matrix4,class irr::core::vector3d<float>,enum irr::newton::E_CALCULATE_OFFSET,enum irr::newton::E_CALCULATE_SIZE)" (__imp_?createBody@IWorld@newton@irr@@QAEPAVIBody@23@PAVISceneNode@scene@3@PAVIMesh@63@W4E_BODY_TYPE@23@MVmatrix4@core@3@V?$vector3d@M@core@3@W4E_CALCULATE_OFFSET@23@W4E_CALCULATE_SIZE@23@@Z) referenced in function _main
..\..\bin\Win32-VisualStudio\HelloWorld.exe : fatal error LNK1120: 1 unresolved externals
Code: Select all
#include <irrlicht.h>
#include <irrNewt.hpp>
using namespace irr;
#pragma comment(lib, "Irrlicht.lib")
#pragma comment(lib, "IrrNewt.lib")
....
// Init physics w/ IrrNewt
newton::IWorld* physics_world = newton::createPhysicsWorld(device);
// create collision b/w AI and Player
newton::IBody *Player_body = physics_world->createBody(Player);
newton::IBody *AI_body = physics_world->createBody(AI);
newton::ICollision *Car_collision = new newton::ICollision(physics_world);
Player_body->setCollision(Car_collision);
AI_body->setCollision(Car_collision);
Windows XP SP2
Visual Studio 2005 Standard Edition
Irrlicht 1.1
IrrNewt 0.4
Newton 1.53
Any suggestions would be greatly appreciated.
- Dybs