misterface
13-04-2006 19:23:48
Hi,
I can compile my ogrenew project (a demo project) successfully: 0 errors!
But when I import the ogrenew headers & source from the demo project into a Windows Form Application I get many errors:
How do I solve these errors?
(The reason why I import it into another project is this: I want to run the OgreNew engine when I click a button in a Windows Form Application with this command:
I can compile my ogrenew project (a demo project) successfully: 0 errors!
But when I import the ogrenew headers & source from the demo project into a Windows Form Application I get many errors:
Error 1 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\eindwerk\Ogre\ogreaddons\OgreNewt\demos\Demo05_SimpleVehicle\Demo05.cpp 22
Error 2 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\eindwerk\Ogre\ogreaddons\OgreNewt\demos\Demo05_SimpleVehicle\Geluid.cpp 23
Error 3 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\eindwerk\Ogre\ogreaddons\OgreNewt\demos\Demo05_SimpleVehicle\Joystick.cpp 29
Error 4 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\eindwerk\Ogre\ogreaddons\OgreNewt\demos\Include\Line3D.cpp 143
Error 5 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\eindwerk\Ogre\ogreaddons\OgreNewt\demos\Demo05_SimpleVehicle\OgreNewtonApplication.cpp 384
Error 6 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\eindwerk\Ogre\ogreaddons\OgreNewt\demos\Demo05_SimpleVehicle\OgreNewtonFrameListener.cpp 396
Error 7 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? c:\eindwerk\Ogre\ogreaddons\OgreNewt\demos\Demo05_SimpleVehicle\SimpleVehicle.cpp 246
Error 4958 error C3641: 'OgreNewt::BodyIterator::newtonIterator' : invalid calling convention '__cdecl ' for function compiled with /clr:pure or /clr:safe c:\eindwerk\ogre\ogreaddons\ogrenewt\ogrenewt_main\inc\OgreNewt_BodyIterator.h 78
How do I solve these errors?
(The reason why I import it into another project is this: I want to run the OgreNew engine when I click a button in a Windows Form Application with this command:
OgreNewtonApplication app;
try {
app.go();
} catch( Ogre::Exception& e ) {
printf( "An Error HAS OCCURED: %s", e.getFullDescription() );
}
return 0;
[quote][/quote]