Errors in compiling the tutorial for Newton by Mercior

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Rat
Posts: 51
Joined: Wed Mar 10, 2004 7:05 am

Errors in compiling the tutorial for Newton by Mercior

Post by Rat »

First off Mercior, good job on the coding effort!

The problem I am having is that the source you provided will not compile in my version of MSVC 6.0 using your code straight out of the box and no changes made to it or monkeying around with any settings. I get the following errors:
Build : warning : failed to (or don't know how to) build 'E:\IRRLICHT\examples\Newton Example\code\Debug\NEWTON EXAMPLE.pch'
--------------------Configuration: NEWTON EXAMPLE - Win32 Debug--------------------
Build : warning : failed to (or don't know how to) build 'E:\IRRLICHT\examples\Newton Example\code\Debug\NEWTON EXAMPLE.pch'
Compiling...
game.cpp
e:\irrlicht\examples\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
e:\irrlicht\examples\newton example\code\main.cpp(1) : fatal error C1083: Cannot open precompiled header file: 'Debug/NEWTON EXAMPLE.pch': No such file or directory

Frankly I dont know how, either to get it to make the precompiled header :(
Any ideas of has anyone else have these problems using MSVC 6.0?
stodge
Posts: 216
Joined: Fri Dec 05, 2003 5:57 pm

Post by stodge »

Turn off precompiled headers in the project settings. Look through the settings; if you're going to use VC6++ you need to learn things like this.
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

:-)

Post by schick »

hehe, precompiled headers are evil
Miwa
Posts: 28
Joined: Wed Feb 18, 2004 10:48 pm

Re: :-)

Post by Miwa »

schick wrote:hehe, precompiled headers are evil
Quite the opposite, pre-compiled headers are awesome. Seriously cuts down build time for any non-trivial source file. Especially if you need to include <windows.h>.
Rat
Posts: 51
Joined: Wed Mar 10, 2004 7:05 am

Post by Rat »

I agree, but if your not aware of how to turn this on and off, and the project had it already set, its a pain trying to figure out exactly where to turn off this option for a user that is not familar with MSVC, but has access to it in a educational environment like myself. I am use to other compilers, like ming, gcc and others. I am now spending a lot of time learning how to use it, as this points out :D

Btw, thanks stodge, for prompting me to learn them, as the problem was solved immediatly turning them off :D
stodge
Posts: 216
Joined: Fri Dec 05, 2003 5:57 pm

Post by stodge »

In many cases it's possible to just play with options. If you make a mistake, just set it back to the old value and everything should be ok. Experimentation is a developer's friend! :)
Guest

Post by Guest »

I kind of just make a back up copy of the whole project folder and then experiment as I go along :D
Post Reply