[Linker error] undefined reference to `NewtonCreate'

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
m_krzywy
Posts: 133
Joined: Sat Nov 04, 2006 2:05 pm

[Linker error] undefined reference to `NewtonCreate'

Post by m_krzywy »

Applied toturial code:

Code: Select all

#include <irrlicht.h>
#include "newton.h"

static NewtonWorld* nWorld; 

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

int main()
{
   nWorld = NewtonCreate (NULL, NULL);
   IrrlichtDevice *device = createDevice(EDT_SOFTWARE,
                            dimension2d<s32>(640,480), false);

   IVideoDriver* driver = device->getVideoDriver();
   ISceneManager* smgr = device->getSceneManager();

   while(device->run())
   {
      driver->beginScene(true, true, video::SColor(0,0,0,0));
      smgr->drawAll();
      driver->endScene();
   }
   device->drop();
   return 0;
}
Image


Image

Error:

Code: Select all

[Linker error] undefined reference to `NewtonCreate' 
ld returned 1 exit status 
Z:\Newton\Makefile.win [Build Error]  [Projekt1.exe] Error 1 
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Post by roxaz »

Newton.dll should be located in your exe durectiry. Also this thread should be located here :)
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

You need to point the linker to a newton library as well.
m_krzywy
Posts: 133
Joined: Sat Nov 04, 2006 2:05 pm

Post by m_krzywy »

thanks for help anyway ;)
Post Reply