hi,
When i first tried to add these lines
#include “odeWorld.h”
#include “odeBody.h”
#include “odeMass.h”
to my code the compiler screamed that he can’t
find that kind of include files.
So i searched over the forums and found out that i need to download the panda3d-1.7.2-tools-win32 and copy the “ode” libary.
After i followed the instruction above, i got another massege from my compiler:
error LNK2001: unresolved external symbol “__declspec(dllimport) public: virtual __thiscall OdeWorld::~OdeWorld(void)” (_imp??1OdeWorld@@UAE@XZ)
1>PhysicTest.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __thiscall OdeWorld::OdeWorld(void)” (_imp??0OdeWorld@@QAE@XZ)
It seems that he can’t find the dll files (the implementation of the headers).
does anyone know how should i correct it?
thank you very much.
p.s
here is the code:
#include “odeWorld.h”
#include “odeBody.h”
#include “odeMass.h”
NodePath sphere;
PT(ClockObject) globalClock = ClockObject::get_global_clock();
using namespace std;
WindowFramework * window;
NodePath mRootNode;
PT(AsyncTaskManager) taskMgr = AsyncTaskManager::get_global_ptr();
CardMaker cm = CardMaker::CardMaker(“My Fullscreen Card”);
int main(int argc, char *argv[]) {
OdeBody *body;
OdeWorld myWorld ;
myWorld.get_gravity();
PandaFramework framework;
framework.open_framework(argc, argv);
framework.set_window_title("move example");
window = framework.open_window();
mRootNode = window->get_render();
window->setup_trackball();
// Get the location of the executable file I'm running:
Filename mydir = ExecutionEnvironment::get_binary_name();
mydir = mydir.get_dirname();
cm.set_frame(LVecBase3f(0,0,0),LVecBase3f(180,0,0),LVecBase3f(180,180,0),LVecBase3f(0,180,0));
mRootNode.attach_new_node(cm.generate());
window->enable_keyboard();
framework.main_loop();
// Shut down the engine when done.
framework.close_framework();
return (0);
}