im trying to use newton with irrlicht following a (french) tuto on the net
http://www.jeux-libres.com/tutoriaux/tuto-245-irrlicht-newton.php
and got this error message from the visual c++ express 2010 compiler.
- Code: Select all
1>------ Build started: Project: Server1, Configuration: Release Win32 ------
1> main.cpp
1>main.cpp(22): error C2660: 'NewtonCreate' : function does not take 2 arguments
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
through if i check the wiki, it does take 2 arguments, like in the tuto anyway
so i dont understand where the problem come from since im a beginner.
starting of my main.cpp
- Code: Select all
#include <cstdlib>
#include <iostream>
#include <irrlicht.h>
#include <newton.h>
using namespace std;
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
#ifdef _IRR_WINDOWS_
#pragma comment(lib, "Irrlicht.lib")
#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
#endif
int main()
{
NewtonWorld* world = NewtonCreate(0,0); //init newton
any suggestion ?