Setting Up Newton SDK in Visual Studio 6.0
-
- Posts: 18
- Joined: Fri Nov 03, 2006 10:42 pm
Setting Up Newton SDK in Visual Studio 6.0
Hi, I have newton SDK installed in the following directory : C:\Program Files\NewtonSDK\sdk And i cant get it linked up with visual studio. Here is a list of my included directories:
anyone know what i have done wrong?
Thanks in advance -BEN
anyone know what i have done wrong?
Thanks in advance -BEN
-
- Posts: 18
- Joined: Fri Nov 03, 2006 10:42 pm
I've tried all sorts of different combinations i cant get it to work. The file names arent like Irrlicht's though here is the filenames:
1.Custom Joints.
2.DLL,
4.DLL_Double
5.LIB_MT
6.LIB_MT_DOUBLE
7.LIB_ST
8.LIB_ST_DOUBLE
also the newton.h file is in this directory aswell
PS thanks for the quick reply
1.Custom Joints.
2.DLL,
4.DLL_Double
5.LIB_MT
6.LIB_MT_DOUBLE
7.LIB_ST
8.LIB_ST_DOUBLE
also the newton.h file is in this directory aswell
PS thanks for the quick reply
-
- Posts: 18
- Joined: Fri Nov 03, 2006 10:42 pm
Hi Thanks for the reply: the output is:
Compiling...
main.cpp
C:\new\newton\main.cpp(2) : fatal error C1083: Cannot open include file: 'newton.h': No such file or directory
Error executing cl.exe.
the code is from the devc++ example :
I know what the error is. Just not how to fix it
LOL
-ben
Compiling...
main.cpp
C:\new\newton\main.cpp(2) : fatal error C1083: Cannot open include file: 'newton.h': No such file or directory
Error executing cl.exe.
the code is from the devc++ example :
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;
}
I know what the error is. Just not how to fix it
LOL
-ben
-
- Posts: 18
- Joined: Fri Nov 03, 2006 10:42 pm
Thanks.
That allows it to compile, but when i execute it i get the following output in the plg file:
Linking...
main.obj : error LNK2001: unresolved external symbol __imp__NewtonCreate
Debug/main.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
this is'nt my code as i stated earlier, and i havent had any practice in newton as ... i've been trying to get it to work all day so i dont know if its the actual code or still a linker error.
-BEN
That allows it to compile, but when i execute it i get the following output in the plg file:
Linking...
main.obj : error LNK2001: unresolved external symbol __imp__NewtonCreate
Debug/main.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
this is'nt my code as i stated earlier, and i havent had any practice in newton as ... i've been trying to get it to work all day so i dont know if its the actual code or still a linker error.
-BEN
-
- Posts: 18
- Joined: Fri Nov 03, 2006 10:42 pm
Have you told the project to link with newton.lib?BenFlowers wrote:Thanks.
That allows it to compile, but when i execute it i get the following output in the plg file:
Linking...
main.obj : error LNK2001: unresolved external symbol __imp__NewtonCreate
Debug/main.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
this is'nt my code as i stated earlier, and i havent had any practice in newton as ... i've been trying to get it to work all day so i dont know if its the actual code or still a linker error.
-BEN
BTW Do any of the tutorials compile?
-
- Posts: 18
- Joined: Fri Nov 03, 2006 10:42 pm
i just tried to compile the first tutorial it comes up with this error :
Compiling...
tutorial.cpp
Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.
c:\program files\newtonsdk\samples\tutorial_01_gettingstarted\stdafx.h(35) : fatal error C1083: Cannot open include file: 'Game.h': No such file or directory
Error executing cl.exe.
i must have to link like 5 things to it .... damn
-BEN
Compiling...
tutorial.cpp
Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.
c:\program files\newtonsdk\samples\tutorial_01_gettingstarted\stdafx.h(35) : fatal error C1083: Cannot open include file: 'Game.h': No such file or directory
Error executing cl.exe.
i must have to link like 5 things to it .... damn
-BEN
-
- Posts: 18
- Joined: Fri Nov 03, 2006 10:42 pm
-
- Posts: 18
- Joined: Fri Nov 03, 2006 10:42 pm