A slight error with Visual Studio .Net

Problems building or running the engine, queries about how to use features etc.
Post Reply
Dids
Gnoblar
Posts: 20
Joined: Tue Feb 01, 2005 3:48 pm
Location: Finland, Vaasa

A slight error with Visual Studio .Net

Post by Dids »

Ok, so I'm a novice programmes. I got all of the examples + the engine to work with Visual Studio .NET 2003.

While I was trying the very first tutorial, I get to the part where I need to copy SkyPlane.cpp and SkyPlane.h into my app dir. I did that, and then rebuilt. I get an error that says this:

c:\ogrenew\Samples\Ogre_tut_1\SkyPlane.cpp(50) : fatal error C1010: unexpected end of file while looking for precompiled header directive

Was wondering, could it be that VS .NET hasn't found the .h file? Or am I completely wrong and did something dumb?
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67
Contact:

Post by sinbad »

This just means you've set up your project to use precompiled headers, but didn't put the precompiled header file as the first thing in your .cpp (which is required).

If you don't know how to set up precompiled headers, the simplest thing is to turn them off in your project settings - you won't benefit from them much in a small project in any case.
Bill
Gremlin
Posts: 167
Joined: Sun Sep 26, 2004 11:50 pm
Location: Arkansas

Post by Bill »

Heh yep. I spent my first 2 hours with VS figuring out how to turn this off. Look under Project -> ???? Properties...

That brings up your Property Pages window.

Then under Configuration Properties -> C/C++-> Precompiled Headers -> Create/Use Precompiled Header, change it to "Not Using Precompiled Headers."
Post Reply