Witam próbuje zacząć prace z silnikiem irrlicht w visual studio 2010 dodałem całą biblioteke include oraz libray do projektu
wpisując kod
#include "StdAfx.h"
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
int main()
{
IrrlichtDevice * device = createDevice( EDT_OPENGL, core::dimension2d < u32 >( 800, 600 ),
32, false, false, false, 0 );
video::IVideoDriver * video = device->getVideoDriver();
scene::ISceneManager * menage = device->getSceneManager();
menage->addCameraSceneNode( 0, vector3df( 0, 30, - 40 ), vector3df( 0, 5, 0 ) );
while( device->run() )
{
video->beginScene( true, true, video::SColor( 255, 0, 10, 200 ) );
menage->drawAll();
video->endScene();
}
device->drop();
return 0;
}
wypisuje mi błąd
1>conTest.obj : error LNK2019: unresolved external symbol __imp__createDevice referenced in function _main
1>C:\Users\luppo\Documents\Visual Studio 2010\Projects\conTest\Debug\conTest.exe : fatal error LNK1120: 1 unresolved externals
przeczytałem ze jest to problem z główną funkcją main ale nie potrafie tego rozwiązać
gdy usune #include "StdAfx.h" wyskakuje mi błąd
1>c:\users\luppo\documents\visual studio 2010\projects\contest\contest\contest.cpp(1): warning C4627: '#include <irrlicht.h>': skipped when looking for precompiled header use
1> Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\users\luppo\documents\visual studio 2010\projects\contest\contest\contest.cpp(29): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
Prosze o pomoc