newton examp not compiling

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mrbig
Posts: 29
Joined: Wed Mar 17, 2004 5:38 am
Location: lakeland, Florida
Contact:

newton examp not compiling

Post by mrbig »

when i try to compile the newton example in vc++ i get this error

c:\irrlicht-0.6\newton example\code\game.cpp(1) : fatal error C1083: Cannot open precompiled header file: 'Debug/NEWTON EXAMPLE.pch': No such file or directory
Main.cpp
c:\irrlicht-0.6\newton example\code\main.cpp(1) : fatal error C1083: Cannot open precompiled header file: 'Debug/NEWTON EXAMPLE.pch': No such file or directory
Generating Code...
Error executing cl.exe.

NEWTON EXAMPLE.exe - 2 error(s), 1 warning(s)
Guest

Post by Guest »

I have exactly the same problem. I'm using Visual Studio .NET 2003. Anyone have any ideas?
Wolf Dreamer
Posts: 121
Joined: Tue Feb 10, 2004 6:39 am
Location: the land of chaotic dreams
Contact:

Post by Wolf Dreamer »

Was there an older version that worked right? Has anyone that has downloaded it within the past couple of months gotten it to work right?

I didn't get any warnings though, just the two fatal errors posted by mrbig.
The last sane human being in a world gone mad

http://s8.invisionfree.com/Game_Maker_f ... hp?act=idx
Guest

Post by Guest »

Hey Wolf, this is freegadgets, downloaded the Newton example a few days ago and eventually got rid of all the linking errors. Make sure you have Newton installed and your compiler set up to find all of it's files. And even if you get rid of all the linking errors, the example still won't work. I forget exactly what the error message was but basically there were too many arguments being passed to a function, deleted one of the arguments and it worked fine. Good Luck
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

Turn off precompiled headers in project options
The Robomaniac
Project Head / Lead Programmer
Centaur Force
Guest

Need a better tutorial

Post by Guest »

Are there any other Newton tutorials out there? The tutorial on the Irrlicht site is too hard to follow. He has set up the engine somehow so that it doesn't work with the code used in the other tutorials. For example, if you copy the code to display a model on the screen and paste it in the Newton example it will give you all kinds of errors.

What we really need is a simple Newton example that is coded like the other Irrlicht examples so that code from them will work. It would also be easier to understand if there was only one cube created instead of an array of them. I know there's Newton users out there, could one of you make a simplified Newton example and post it here? Pllleeease!! :?
Wolf Dreamer
Posts: 121
Joined: Tue Feb 10, 2004 6:39 am
Location: the land of chaotic dreams
Contact:

Post by Wolf Dreamer »

NEWTON EXAMPLE.pch is a precompiled header file. I don't seem to have it anywhere though.

http://support.microsoft.com/default.as ... US;q194615
Microsoft says they have a problem with a program deleting the .pch files. The lastest download of Newton SDK is from back in May. It does not have this file in it, so I'm thinking someone might've done something that deleted it before hand. Anyway, can you look around and see if you have it?
The last sane human being in a world gone mad

http://s8.invisionfree.com/Game_Maker_f ... hp?act=idx
Wolf Dreamer
Posts: 121
Joined: Tue Feb 10, 2004 6:39 am
Location: the land of chaotic dreams
Contact:

Post by Wolf Dreamer »

http://www.physicsengine.com/forum/viewtopic.php?t=558
I posted the problem at the official Newton forum, and the guy there says the problem affects only those using Visual C++ .net 2003, not those with the .net 2002 or with Visual studio 6.

Anyway, for a solution, click the link and read about their fix. I'm not sure where to post that new code at exactly, but I'll look around and find a place.
The last sane human being in a world gone mad

http://s8.invisionfree.com/Game_Maker_f ... hp?act=idx
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

I found Mercior's tutorial very helpful
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
Post Reply