Setting Up Newton SDK in Visual Studio 6.0

Discussion about everything. New games, 3d math, development tips...
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

BenFlowers wrote:i think i may know what the problem is, i think the folder is missin "stdafx.h" which should be in the newton folder. Could you send the code over then ill save it and see if it works then... thanks.
-BEN
I think I know where the issue lies. Newton uses <stdafx.h> which means the compiler looks in the directory folders in order. You have irrlicht, SDL and PeonSDK before newton. If any of these folders have stdafx in them them the newton one wont be picked up.

stdafx.h for Newton should be in \NewtonSDK\samples\toolBox

Try this: remove sdl, irrlicht and peonsdk from your "include files" folder list. Then see if a newton sample will compile.
BenFlowers
Posts: 18
Joined: Fri Nov 03, 2006 10:42 pm

Post by BenFlowers »

ok doen that, no it didnt work here is the error report:

tutorial.cpp
c:\program files\newtonsdk\samples\common\stdafx.h(21) : fatal error C1083: Cannot open include file: 'irrlicht.h': No such file or directory
Error executing cl.exe.


which is kindof strange... so i put irrlicht under teh newton SDK and heres the errors i got when doing that :

Compiling...
tutorial.cpp
Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.
c:\program files\newtonsdk\samples\common\openglutil.h(23) : error C2146: syntax error : missing ';' before identifier 'g_cubeTexture'
c:\program files\newtonsdk\samples\common\openglutil.h(23) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

i think this is never going to end ! :lol:
-BEN
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

BenFlowers wrote: i think this is never going to end ! :lol:
-BEN
I'm determined to sort this out for you. Hopefully before 2007 arrives. :lol:

The idea is to compile a Newton tutorial and a Newton tutorial only - that's the first step to sorting things out. We can then add the Irrlicht stuff to get you going.

There is no stdafx.h in my \newtonsdk\samples\common. If there were, I'd also be wondering why on earth it wants to include irrlicht.h.

What I'd like you to try is this: clean out your VC6 directory list of non-VC6 stuff (both lib and include folders); uninstall your Newton SDK; go and get the latest SDK from the SDK download page; install the SDK; go try and compile a Newton tutorial. We'll take it from there.
:)
BenFlowers
Posts: 18
Joined: Fri Nov 03, 2006 10:42 pm

Post by BenFlowers »

Hopefully :lol:

ok i did all of that and havent added any libs or files to vc++ then heres the error i get :

Compiling...
tutorial.cpp
c:\program files\newtonsdk\samples\tutorial_01_gettingstarted\tutorial.cpp(9) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
Error executing cl.exe.



ok now what do you want me to do ?
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Just for fun, try changing <stdafx.h> to "stdafx.h" in tutorial.cpp.
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

OK, I've just installed VC6 on a clean partition and then installed Newton 1.52 SDK. Opened up the Tutorials workspace and all the tutorials compiled just fine.

It would appear, then, to be a glich in your setup. :wink: Are you sure you've removed all references to non-VC6 stuff in your lib and include lists?

Perhaps you may want to think about reinstalling VC6 and getting a clean (re)start. Or there's always Visual Studio 2005 Express, which I believe is a free download from MS (get a completely fresh start!).
BenFlowers
Posts: 18
Joined: Fri Nov 03, 2006 10:42 pm

Post by BenFlowers »

yeah its definitely got nothing but vc6 stuff i don't wanna change over now i like VC6 :lol: when you installed it, did u set up the linkers or was it already done for you ?
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

BenFlowers wrote:yeah its definitely got nothing but vc6 stuff i don't wanna change over now i like VC6 :lol: when you installed it, did u set up the linkers or was it already done for you ?
Yeah, I used VC6 for years and it was OK. I had to change to VS2005 for my day job, though. :wink:

Anyway, here's what I did:
1. Install VC6 & MSDN Library
2. Install Newton SDK.
3. Open Tutorials.dsw
4. Build all.

I didn't mess with lib or include directories. It just worked (compiled) with no problems.

Perhaps a fresh install of VC6 is what you need.
BenFlowers
Posts: 18
Joined: Fri Nov 03, 2006 10:42 pm

Post by BenFlowers »

i tried removing VS6.0 and i cant remove it! i think it must be broken :lol: its very screwed up so im stuck with it till i reformat my HD lol whats VS2005 like? and uif you dont mind me asking whats ur day job? i may just ahve to use a different compiler and maby i can get it to work... hopefully :D
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

BenFlowers wrote:i tried removing VS6.0 and i cant remove it! i think it must be broken :lol: its very screwed up so im stuck with it till i reformat my HD lol whats VS2005 like? and uif you dont mind me asking whats ur day job? i may just ahve to use a different compiler and maby i can get it to work... hopefully :D
Pesky VC6 don't wanna go quietly! :mrgreen:

When you run the VC6 uninstaller is there a "repair" option? Perhaps that will repair VC6 so you can uninstall it. :lol: If that doesn't work you could try reinstalling VC over the top of existing VC6. Or Install VC6 to a fresh folder and manually delete the old VC6 folder (if you want to keep with VC6). Or just install VS2005 and it should take over as your main compiler.

I'm an MSDN subscriber so I have the Pro edition of VS2005. My day job is as a C++/3D Graphics Programmer. This involves stuff like writing HLSL shaders, implementing cpu bottleneck functions in SSE code and adding threaded code for multiprocessor support. 8)
Post Reply