Hiya, I'm working on setting up a newton project with DarkGDK. I installed the newton SDK, and copied the newton.h file to my project directory. I included it in my code, and vc++ recognizes the Newton commands. However, when I compile this code:
#include "DarkGDK.h"
#include "Newton.h"
static NewtonWorld* nWorld;
void InitScene()
{
nWorld = NewtonCreate(NULL,NULL);
}
I get this error:
1>Main.obj : error LNK2019: unresolved external symbol __imp__NewtonCreate referenced in function "void __cdecl InitScene(void)" (?InitScene@@YAXXZ)
Please note that the above is not ALL of my code, it is just the excerpt that pertains to newton. I don't reference newton anywhere else in my program yet, as I haven't been able to initialize it.
Also, declaring the static NewtonWorld* variable works, the NewtonCreate function is what causes the error.
Any ideas on what I'm doing wrong?
Thanks!