Irrlicht + Newton Game Dynamics

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
charl3s7
Posts: 11
Joined: Sat Oct 03, 2009 3:17 am

Irrlicht + Newton Game Dynamics

Post by charl3s7 »

I'm having trouble making the world...

I just got it included successfully, but now I don't know how to like, make the world activated.

I did

Code: Select all

NewtonWorld* nWorld = NewtonCreate(NULL,NULL);
But got the result:

Code: Select all

main.obj : error LNK2019: unresolved external symbol __imp__NewtonCreate referenced in function "void __cdecl `dynamic initializer for 'nWorld''(void)" (??__EnWorld@@YAXXZ)
//Charles
DtD
Posts: 264
Joined: Mon Aug 11, 2008 7:05 am
Location: Kansas
Contact:

Post by DtD »

This basically means your compiler is saying "I know NewtonCreate exists, but I can't find code for it!" You need to make sure the newton library is getting linked with your project. How you do this, specifically, is IDE-dependent.

Also, Welcome to the forums. Please note however these forums are for Irrlicht support, not Newton. Also, if you are using Irrlicht, are you aware of IrrNewt? I have never used it, but it has a very lively topic and has stood the test of time so it seems to be good.

~DtD
Viz_Fuerte
Posts: 91
Joined: Sun Oct 19, 2008 5:29 pm
Location: Valencia (Spain)
Contact:

Post by Viz_Fuerte »

Add to your code:

Code: Select all

#include <Newton.h>
#pragma comment(lib,"Newton.lib")
charl3s7
Posts: 11
Joined: Sat Oct 03, 2009 3:17 am

Post by charl3s7 »

I tried IrrNewt but it errors. D:

And thanks. :)
//Charles
BoingBoing
Posts: 18
Joined: Fri Sep 11, 2009 4:31 am

Post by BoingBoing »

You need to put newton.lib into your linker.

This doesn't require irrnewt.
Post Reply