I followed the steps you explained to me. now i get these 4 errors:
-------------------------------
--------------------Configuration: test - Win32
Debug--------------------
Linking...
test.obj : error LNK2001: unresolved external symbol _dsDrawSphereD
test.obj : error LNK2001: unresolved external symbol _dsSetColor
test.obj : error LNK2001: unresolved external symbol _dsSetViewpoint
test.obj : error LNK2001: unresolved external symbol _dsSimulationLoop
Debug/test.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
test.exe - 5 error(s), 0 warning(s)
-----------------------------------------------------------------------------
And this is the code that i am trying to simulate:
------------------------------------------------------------------
// Open Dynamics Engine
// ?????, ???? (2007)
http://demura.net/
// 1.1: hello.cpp by Kosei Demura (2007-5-17)
#include <ode/ode.h> // ODE?????????
#include <drawstuff/drawstuff.h> // ???????????
dWorldID world; // ??????
dBodyID apple; // ???
dReal r = 0.2, m = 1.0; // ??????,??
dsFunctions fn; // ????????????
void simLoop(int pause) /*** ??????????? ***/
{
dWorldStep(world,0.01); // ?????????1???????
dsSetColor(1.0,0.0,0.0); // ?????(r,g,b)
const dReal *pos = dBodyGetPosition(apple); // ?????????
const dReal *R = dBodyGetRotation(apple); // ?????????
dsDrawSphereD(pos,R,r); // ??????
}
void start() /*** ??? ***/
{
static float xyz[3] = {3.0,0.0,1.0}; // ?????
static float hpr[3] = {-180, 0, 0}; // ?????
dsSetViewpoint(xyz,hpr); // ??????
}
void setDrawStuff() /*** ??????? ***/
{
fn.version = DS_VERSION; // ?????????????
fn.start = &start; // ??? start???????
fn.step = &simLoop; // simLoop???????
fn.path_to_textures = "../../drawstuff/textures"; // ?????
}
int main(int argc, char **argv) /*** main?? ***/
{
setDrawStuff(); // ???????
world = dWorldCreate(); // ?????
dWorldSetGravity(world,0,0,-0.2); // ????
apple = dBodyCreate(world); // ??????
dMass mass; // ???mass???
dMassSetZero(&mass); // ???mass????
dMassSetSphereTotal(&mass,m,r); // ???mass??????
dBodySetMass(apple,&mass); // ????mass???
dBodySetPosition(apple, 0.0, 0.0, 2.0); // ??????(x,y,z)???
dsSimulationLoop(argc,argv,640,480,&fn); // ???????????
dWorldDestroy(world); // ?????
return 0;
}
-----------------------------------------------------------------------------------
Any other suggestions on what i need to do next?????
Thanks.....
On Sep 18, 6:40 pm, "Marc \"Foddex\" Oude Kotte" <
m...@solcon.nl>
> > > - Show quoted text -- Hide quoted text -