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;
}
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