I've use ODE (Open Dynamics Engine) in a previous test program that I have made and it worked quite well. However, now I am trying to implement it in a more complex engine and I am having difficulties. It's probably not a problem SPECIFIC to ODE, but I can't seem to find a solution. The problem is relatively simple. I can use the ODE routines and whatnot when NOT using them in a class, but if I try and implement it into a class suddenly the compiler complains that I'm trying to reference an unresolved external symbol! This seems odd to me since I would think if the compiler knows what it is when not in a class then it should know it in a class. I will give an example:
This DOES work:
static void Initialize(void)
{
dWorldCreate();
}
(note: I am aware that this call is pointless, but at the juncture I'm just trying to get it this far.
This does NOT work (even though it is in exactly the same cpp file):
void CPhysics::Initialize(void)
{
dWorldCreate();
}
The error I get is:
error LNK2019: unresolved external symbol _dWorldCreate referenced in function "public: void __thiscall CPhysics::Initialize(void)" (?Initialize@CPhysics@@QAEXXZ)
I appreciate any and all help provided. Thanks in advance.
[Edited by - rjackets on September 1, 2005 11:14:40 AM]