C/Visual C - error LNK 2001

 
Vista:

error LNK 2001

Publicado por Sabrina (3 intervenciones) el 05/03/2009 13:01:59
Hola estoy trabajando con el visual estudio con ogre y tengo las librerias necesarias(o eso creo yo ) linkadas, al compilar este codigo:

#include "ExampleApplication.h"

class TutorialApplication : public ExampleApplication
{
protected:
public:
TutorialApplication()
{
}

~TutorialApplication()
{
}
protected:
void createScene(void)
{
}
};

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"

INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
#else
int main(int argc, char **argv)
#endif
{
// Create application object
TutorialApplication app;

try {
app.go();
} catch( Exception& e ) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
MessageBox( NULL, e.what(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
fprintf(stderr, "An exception has occurred: %s ",
e.what());
#endif
}

return 0;
}

Me da este tipo de errores:

1>main.obj : error LNK2001: símbolo externo "__declspec(dllimport) const Ogre::WindowEventListener::`vftable'" (__imp_??_7WindowEventListener@Ogre@@6B@) sin resolver
1>main.obj : error LNK2001: símbolo externo "__declspec(dllimport) public: static void __cdecl Ogre::AllocatedObject<class Ogre::CategorisedAllocPolicy<0> >::operator delete(void *)" (__imp_??3?$AllocatedObject@V?$CategorisedAllocPolicy@$0A@@Ogre@@@Ogre@@SAXPAX@Z) sin resolver
1>main.obj : error LNK2001: símbolo externo "__declspec(dllimport) public: static void * __cdecl Ogre::AllocatedObject<class Ogre::CategorisedAllocPolicy<0> >::operator new(unsigned int)" (__imp_??2?$AllocatedObject@V?$CategorisedAllocPolicy@$0A@@Ogre@@@Ogre@@SAPAXI@Z) sin resolver
1>main.obj : error LNK2001: símbolo externo "__declspec(dllimport) public: __thiscall Ogre::WindowEventListener::WindowEventListener(void)" (__imp_??0WindowEventListener@Ogre@@QAE@XZ) sin resolver
1>main.obj : error LNK2001: símbolo externo "__declspec(dllimport) public: __thiscall Ogre::FrameListener::FrameListener(void)" (__imp_??0FrameListener@Ogre@@QAE@XZ) sin resolver
1>main.obj : error LNK2001: símbolo externo "__declspec(dllimport) public: struct OIS::MouseState const & __thiscall OIS::Mouse::getMouseState(void)const " (__imp_?getMouseState@Mouse@OIS@@QBEABUMouseState@2@XZ) sin resolver

Muchas gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder