Compilation and Termination

Problems building or running the engine, queries about how to use features etc.
User avatar
Mindslaver
Gnoblar
Posts: 21
Joined: Sun Dec 12, 2004 5:53 pm
Location: United States

Compilation and Termination

Post by Mindslaver »

http://www.ogre3d.org/docs/Tutorials/2_ ... Index.html

Following that, I compiled a test project; but it terminates abnormally.

Image

And now I am getting 75 errors from SkyPlane.cpp.

Code: Select all

--------------------Configuration: Test - Win32 Debug--------------------
Compiling...
SkyPlane.cpp
SkyPlane.obj : error LNK2001: unresolved external symbol __imp__MessageBoxA@16
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __thiscall Ogre::Exception::getFullDescription(void)const " (__imp_?get
FullDescription@Exception@Ogre@@QBE?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager::op_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::MemoryManager Ogre::MemoryManager::sMemManager" (__imp_?sMemManager@MemoryManager@Ogre@@2V12@A)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Root::startRendering(void)" (__imp_?startRendering@Root@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::TextureManager & __cdecl Ogre::TextureManager::getSingleton(void)" (__imp_?getSingleton@TextureManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Root::Root(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,class _STL::basic_string<char,class
 _STL::char_traits<char>,class _STL::allocator<char> > const &,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (__imp_??0Root@Ogre@@QAE@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_
STL@@00@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::MemoryManager::setOwner(char const *,unsigned int,char const *)" (__imp_?setOwner@MemoryManager@Ogre@@QAEXPBDI0@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::RenderWindow * __thiscall Ogre::Root::initialise(bool,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const
 &)" (__imp_?initialise@Root@Ogre@@QAEPAVRenderWindow@2@_NABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall Ogre::Root::showConfigDialog(void)" (__imp_?showConfigDialog@Root@Ogre@@QAE_NXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::SceneManager * __thiscall Ogre::Root::getSceneManager(enum Ogre::SceneType)" (__imp_?getSceneManager@Root@Ogre@@QAEPAVSceneManager@2@W4SceneType@2@@Z
)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::lookAt(class Ogre::Vector3 const &)" (__imp_?lookAt@Camera@Ogre@@QAEXABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::setPosition(class Ogre::Vector3 const &)" (__imp_?setPosition@Camera@Ogre@@QAEXABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Vector3::Vector3(float,float,float)" (__imp_??0Vector3@Ogre@@QAE@MMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Root::addFrameListener(class Ogre::FrameListener *)" (__imp_?addFrameListener@Root@Ogre@@QAEXPAVFrameListener@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::KeyListener::keyFocusOut(class Ogre::KeyEvent *)" (?keyFocusOut@KeyListener@Ogre@@UAEXPAVKeyEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::KeyListener::keyFocusIn(class Ogre::KeyEvent *)" (?keyFocusIn@KeyListener@Ogre@@UAEXPAVKeyEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::EventListener::isMulticaster(void)const " (?isMulticaster@EventListener@Ogre@@UBE_NXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::FrameListener::frameEnded(struct Ogre::FrameEvent const &)" (?frameEnded@FrameListener@Ogre@@UAE_NABUFrameEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::EventProcessor::frameStarted(struct Ogre::FrameEvent const &)" (?frameStarted@EventProcessor@Ogre@@UAE_NABUFrameEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::FrameListener::~FrameListener(void)" (__imp_??1FrameListener@Ogre@@UAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 & __thiscall Ogre::Vector3::operator=(class Ogre::Vector3 const &)" (__imp_??4Vector3@Ogre@@QAEAAV01@ABV01@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::Vector3 const Ogre::Vector3::ZERO" (__imp_?ZERO@Vector3@Ogre@@2V12@B)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::InputReader * __thiscall Ogre::PlatformManager::createInputReader(void)" (__imp_?createInputReader@PlatformManager@Ogre@@QAEPAVInputReader@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::PlatformManager & __cdecl Ogre::PlatformManager::getSingleton(void)" (__imp_?getSingleton@PlatformManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::InputReader * __thiscall Ogre::EventProcessor::getInputReader(void)" (__imp_?getInputReader@EventProcessor@Ogre@@QAEPAVInputReader@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::KeyTarget::addKeyListener(class Ogre::KeyListener *)" (__imp_?addKeyListener@KeyTarget@Ogre@@QAEXPAVKeyListener@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::EventProcessor::startProcessingEvents(bool)" (__imp_?startProcessingEvents@EventProcessor@Ogre@@QAEX_N@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::OverlayManager::createCursorOverlay(void)" (__imp_?createCursorOverlay@OverlayManager@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::EventProcessor::initialise(class Ogre::RenderWindow *)" (__imp_?initialise@EventProcessor@Ogre@@QAEXPAVRenderWindow@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::EventProcessor::EventProcessor(void)" (__imp_??0EventProcessor@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::OverlayManager & __cdecl Ogre::OverlayManager::getSingleton(void)" (__imp_?getSingleton@OverlayManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Vector3::Vector3(void)" (__imp_??0Vector3@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::KeyListener::KeyListener(void)" (__imp_??0KeyListener@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::FrameListener::FrameListener(void)" (__imp_??0FrameListener@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(class Ogre::Vector3 cons
t &)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 const & __thiscall Ogre::Camera::getDerivedPosition(void)const " (__imp_?getDerivedPosition@Camera@Ogre@@QBEABVVector3@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(class Ogre::Quaternion c
onst &)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABVQuaternion@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Quaternion const & __thiscall Ogre::Camera::getDerivedOrientation(void)const " (__imp_?getDerivedOrientation@Camera@Ogre@@QBEABVQuaternion@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::setDetailLevel(enum Ogre::SceneDetailLevel)" (__imp_?setDetailLevel@Camera@Ogre@@QAEXW4SceneDetailLevel@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::MaterialManager::setDefaultAnisotropy(unsigned int)" (__imp_?setDefaultAnisotropy@MaterialManager@Ogre@@QAEXI@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::MaterialManager & __cdecl Ogre::MaterialManager::getSingleton(void)" (__imp_?getSingleton@MaterialManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::yaw(class Ogre::Radian const &)" (__imp_?yaw@Camera@Ogre@@QAEXABVRadian@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static float __cdecl Ogre::Math::DegreesToRadians(float)" (__imp_?DegreesToRadians@Math@Ogre@@SAMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Overlay::hide(void)" (__imp_?hide@Overlay@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Overlay::show(void)" (__imp_?show@Overlay@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::moveRelative(class Ogre::Vector3 const &)" (__imp_?moveRelative@Camera@Ogre@@QAEXABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::pitch(class Ogre::Radian const &)" (__imp_?pitch@Camera@Ogre@@QAEXABVRadian@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const & __thiscall Ogre::RenderTarget::getDebugText(void)const " (__imp
_?getDebugText@RenderTarget@Ogre@@QBEABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(unsigned int,unsigned sh
ort,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@IGDH@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(unsigned long,unsigned s
hort,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@KGDH@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(float,unsigned short,uns
igned short,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@MGGDH@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::GuiElement * __thiscall Ogre::GuiManager::getGuiElement(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > con
st &,bool)" (__imp_?getGuiElement@GuiManager@Ogre@@QAEPAVGuiElement@2@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@_N@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::GuiManager & __cdecl Ogre::GuiManager::getSingleton(void)" (__imp_?getSingleton@GuiManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char __thiscall Ogre::KeyEvent::getKeyChar(void)" (__imp_?getKeyChar@KeyEvent@Ogre@@QAEDXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::PlatformManager::destroyInputReader(class Ogre::InputReader *)" (__imp_?destroyInputReader@PlatformManager@Ogre@@QAEXPAVInputReader@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::EventProcessor::~EventProcessor(void)" (__imp_??1EventProcessor@Ogre@@UAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall Ogre::Viewport::getActualHeight(void)const " (__imp_?getActualHeight@Viewport@Ogre@@QBEHXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall Ogre::Viewport::getActualWidth(void)const " (__imp_?getActualWidth@Viewport@Ogre@@QBEHXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Viewport::setBackgroundColour(class Ogre::ColourValue const &)" (__imp_?setBackgroundColour@Viewport@Ogre@@QAEXABVColourValue@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ColourValue::ColourValue(float,float,float,float)" (__imp_??0ColourValue@Ogre@@QAE@MMMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ConfigFile::~ConfigFile(void)" (__imp_??1ConfigFile@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl Ogre::ResourceManager::addCommonArchiveEx(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,c
lass _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (__imp_?addCommonArchiveEx@ResourceManager@Ogre@@SAXABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@0@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::MapIterator<class _STL::multimap<class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> >,class _STL::basic_string<c
har,class _STL::char_traits<char>,class _STL::allocator<char> >,struct _STL::less<class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > >,class _STL::allocator<struct _STL::pair<class _STL::basic_string<char,class
 _STL::char_traits<char>,class _STL::allocator<char> > const ,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > > > > > __thiscall Ogre::ConfigFile::getSettingsIterator(void)" (__imp_?getSettingsIterator@Confi
gFile@Ogre@@QAE?AV?$MapIterator@V?$multimap@V?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@V12@U?$less@V?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DV?$char_traits@D@_ST
L@@V?$allocator@D@2@@_STL@@V12@@_STL@@@2@@_STL@@@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::ConfigFile::load(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,class _STL::basic_string
<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,bool)" (__imp_?load@ConfigFile@Ogre@@QAEXABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@0_N@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ConfigFile::ConfigFile(void)" (__imp_??0ConfigFile@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Root::~Root(void)" (__imp_??1Root@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Light::setPosition(float,float,float)" (__imp_?setPosition@Light@Ogre@@QAEXMMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 __thiscall Ogre::Vector3::operator-(void)const " (__imp_??GVector3@Ogre@@QBE?AV01@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::Vector3 const Ogre::Vector3::UNIT_Y" (__imp_?UNIT_Y@Vector3@Ogre@@2V12@B)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Plane::Plane(void)" (__imp_??0Plane@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::SceneManager::setAmbientLight(class Ogre::ColourValue const &)" (__imp_?setAmbientLight@SceneManager@Ogre@@QAEXABVColourValue@2@@Z)
SkyPlane.exe : fatal error LNK1120: 74 unresolved externals
Error executing cl.exe.

SkyPlane.obj - 75 error(s), 0 warning(s)
This is quite annoying.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

When you get a runtime error alway look into the ogre.log. There might be more informations or an exception. If you can't find anything just debug your application.

The linker errors are all there because the linker couldn't find your OgreMain.lib (resp. OgreMain_d.lib for debug config). Make sure it is added to your project's "additional dependencies" and make sure you include the path to the lib to your project's "additional library directories".
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
Mindslaver
Gnoblar
Posts: 21
Joined: Sun Dec 12, 2004 5:53 pm
Location: United States

Post by Mindslaver »

tanis wrote:The linker errors are all there because the linker couldn't find your OgreMain.lib (resp. OgreMain_d.lib for debug config). Make sure it is added to your project's "additional dependencies" and make sure you include the path to the lib to your project's "additional library directories".
I added the Ogre lib directories (Debug and Release) to my Additional Directories section of Visual C++. I linked to OgreMain_d.lib, but I still get the same errors. I don't know why the application was linking and running when the source file gives 75 errors.

Perhaps there is a preprocessor command I need to change?
Here is what mine looks like:
_WINDOWS,_STLP_USE_DYNAMIC_LIB,OGRE_LIBRARY_IMPORTS,_DEBUG,WIN32,_STLP_DEBUG
This roadblock is quite distressing....
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

You #defines look ok, but I don't know this OGRE_LIBRARY_IMPORTS. I don't use it in our projects.

Don't use your global additional directories section for OgreMain lib dirs, but the project specific. Double check everything, and if it doens't help post your linker command line. You can find it in the project options under Linker->Command Line (VC2003 here, but it should be somewhere similiar und VC6 if you use it)
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
Mindslaver
Gnoblar
Posts: 21
Joined: Sun Dec 12, 2004 5:53 pm
Location: United States

Post by Mindslaver »

Before I started this project, I went to Tools->Options->Directories->Library Files, and I added the two following paths:

C:\OGRE3D\OGRENEW\OGREMAIN\LIB\DEBUG
C:\OGRE3D\OGRENEW\OGREMAIN\LIB\RELEASE

Is this my linker command line? I can't see any problems with it...
/nologo /MDd /W3 /Gm /GX /ZI /I "..\Common\Include" /I "..\..\OgreMain\include" /D "_WINDOWS" /D "_STLP_USE_DYNAMIC_LIB" /D "OGRE_LIBRARY_IMPORTS" /D "_DEBUG" /D "WIN32" /D "_STLP_DEBUG" /Fp"Debug/Test.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /Zm1000
Here is my library list thing...
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ogremain_d.lib /nologo
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

Mindslaver wrote:Is this my linker command line? I can't see any problems with it...
/nologo /MDd /W3 /Gm /GX /ZI /I "..\Common\Include" /I "..\..\OgreMain\include" /D "_WINDOWS" /D "_STLP_USE_DYNAMIC_LIB" /D
"OGRE_LIBRARY_IMPORTS" /D "_DEBUG" /D "WIN32" /D "_STLP_DEBUG"
/Fp"Debug/Test.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /Zm1000
No it ain't. This is your compiler command line. There must be something similiar for the linker. The line must have Ogremain.lib in it and some other properties. When you found it please post it. I wouldn't recommend to add Ogremain to your global library path. It woudn't even work with older Ogre versions. It's usually best to add it as a project dependency. In-deep instructions can be found in this tutorial in the Ogre-wiki (which is by itself a valuable information resource).
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
Mindslaver
Gnoblar
Posts: 21
Joined: Sun Dec 12, 2004 5:53 pm
Location: United States

Post by Mindslaver »

Are there files that I need to copy around after I have compiled the Ogre library? C:\Ogre3D\ogrenew\Samples\bin\Debug\Test.exe
can't find OgreMain.dll, but I looked in OgreMain\lib\Release and OgreMain.dll was there! What is going on?
Lodes
Google Summer of Code Student
Google Summer of Code Student
Posts: 228
Joined: Mon Mar 17, 2003 12:02 am
Location: San Jose, CA, USA

Post by Lodes »

If you did a batch build of the engine, all the files should have been copied around.

OgreMain/lib/Debug contains OgreMain_d.dll which you need to use if you are using a debug build which is what you are doing since you are running Test.exe from Debug and you linked OgreMain_d.lib not OgreMain.lib for your debug build.

Now if you're building in release mode then you would use OgreMain.dll which is in OgreMain/lib/Release.

Please don't mix release and debug dlls/exes, it's just bad :)

EDIT: I think I misread your message a bit, but you're supposed to copy OgreMain.dll to Samples\Common\bin\Release and OgreMain_d.dll to Samples\Common\bin\Debug, you will also need to copy around other dll files if they haven't been copied to the directories.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

Mindslaver: is your build problem solved now? I can't follow.
Where does this Test.exe come from? is it part of the Humble Beginnings tutorial? If so just do what the tutorial says if it doesn't say anything copy it to Samples\Common\bin\Release or Samples\Common\bin\Debug. All needed Ogre dlls should be there.
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
Mindslaver
Gnoblar
Posts: 21
Joined: Sun Dec 12, 2004 5:53 pm
Location: United States

Post by Mindslaver »

My build problem isn't solved; I followed the tutorials instructions, but I named the application Test.exe instead of APPNAME.EXE. Is that a mistake?
User avatar
Mindslaver
Gnoblar
Posts: 21
Joined: Sun Dec 12, 2004 5:53 pm
Location: United States

Post by Mindslaver »

Actually, I think the compiler is not recognizing the include directories that hold the include files!

I have the following in my Additional Include Directories:

..\Common\Include ..\..\OgreMain\include

When ExampleApplication.h includes Ogre.h, the compiler says
c:\ogre3d\ogrenew\samples\common\include\exampleapplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
From what I understand, I'm not supposed to add anything to my Tools->Options->Directories->Include Files, correct?
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

You are jumping back and forth here and loose me in the process. ;)

Well check your include pathes. They are obviously wrong. I don't know your setup so I can't tell you your pathes. ;)
team-pantheon programmer
creators of Rastullahs Lockenpracht
Lodes
Google Summer of Code Student
Google Summer of Code Student
Posts: 228
Joined: Mon Mar 17, 2003 12:02 am
Location: San Jose, CA, USA

Post by Lodes »

Naming your application Test.exe instead of APPNAME.exe isn't a mistake, it doesn't matter whatsoever and it is meant to be changed.

To add the necessary include directory:
- right click on your project and select properties (inside VS)
- now click on C/C++ and select general, there you can add include directories for your project.
- I don't know where your project file is so I can't give you a relative path to it but here is the absolute path which you should add there: C:\ogre3d\ogrenew\OgreMain\include

Now you have that problem solved. You really need to learn how to use your IDE. I am not really sure what you messed up, but setting up a new project using OGRE is very very straightforward once you know your IDE.
User avatar
Mindslaver
Gnoblar
Posts: 21
Joined: Sun Dec 12, 2004 5:53 pm
Location: United States

Post by Mindslaver »

I am so stupid. I forgot to put a comma between the two directories in the Preprocessor->Additional Include Directories.

But I still these new 75 errors:

Code: Select all

--------------------Configuration: Test - Win32 Debug--------------------
Compiling...
Skipping... (no relevant changes detected)
SkyPlane.cpp
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager::op_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::MemoryManager Ogre::MemoryManager::sMemManager" (__imp_?sMemManager@MemoryManager@Ogre@@2V12@A)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol __imp__MessageBoxA@16
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __thiscall Ogre::Exception::getFullDescription(void)const " (__imp_?get
FullDescription@Exception@Ogre@@QBE?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Root::startRendering(void)" (__imp_?startRendering@Root@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::TextureManager & __cdecl Ogre::TextureManager::getSingleton(void)" (__imp_?getSingleton@TextureManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Root::Root(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,class _STL::basic_string<char,class
 _STL::char_traits<char>,class _STL::allocator<char> > const &,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (__imp_??0Root@Ogre@@QAE@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_
STL@@00@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::MemoryManager::setOwner(char const *,unsigned int,char const *)" (__imp_?setOwner@MemoryManager@Ogre@@QAEXPBDI0@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::RenderWindow * __thiscall Ogre::Root::initialise(bool,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const
 &)" (__imp_?initialise@Root@Ogre@@QAEPAVRenderWindow@2@_NABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall Ogre::Root::showConfigDialog(void)" (__imp_?showConfigDialog@Root@Ogre@@QAE_NXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::SceneManager * __thiscall Ogre::Root::getSceneManager(enum Ogre::SceneType)" (__imp_?getSceneManager@Root@Ogre@@QAEPAVSceneManager@2@W4SceneType@2@@Z
)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::lookAt(class Ogre::Vector3 const &)" (__imp_?lookAt@Camera@Ogre@@QAEXABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::setPosition(class Ogre::Vector3 const &)" (__imp_?setPosition@Camera@Ogre@@QAEXABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Vector3::Vector3(float,float,float)" (__imp_??0Vector3@Ogre@@QAE@MMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Root::addFrameListener(class Ogre::FrameListener *)" (__imp_?addFrameListener@Root@Ogre@@QAEXPAVFrameListener@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::FrameListener::frameEnded(struct Ogre::FrameEvent const &)" (?frameEnded@FrameListener@Ogre@@UAE_NABUFrameEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::EventProcessor::frameStarted(struct Ogre::FrameEvent const &)" (?frameStarted@EventProcessor@Ogre@@UAE_NABUFrameEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::KeyListener::keyFocusOut(class Ogre::KeyEvent *)" (?keyFocusOut@KeyListener@Ogre@@UAEXPAVKeyEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::KeyListener::keyFocusIn(class Ogre::KeyEvent *)" (?keyFocusIn@KeyListener@Ogre@@UAEXPAVKeyEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::EventListener::isMulticaster(void)const " (?isMulticaster@EventListener@Ogre@@UBE_NXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::FrameListener::~FrameListener(void)" (__imp_??1FrameListener@Ogre@@UAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 & __thiscall Ogre::Vector3::operator=(class Ogre::Vector3 const &)" (__imp_??4Vector3@Ogre@@QAEAAV01@ABV01@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::Vector3 const Ogre::Vector3::ZERO" (__imp_?ZERO@Vector3@Ogre@@2V12@B)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::InputReader * __thiscall Ogre::PlatformManager::createInputReader(void)" (__imp_?createInputReader@PlatformManager@Ogre@@QAEPAVInputReader@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::PlatformManager & __cdecl Ogre::PlatformManager::getSingleton(void)" (__imp_?getSingleton@PlatformManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::InputReader * __thiscall Ogre::EventProcessor::getInputReader(void)" (__imp_?getInputReader@EventProcessor@Ogre@@QAEPAVInputReader@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::KeyTarget::addKeyListener(class Ogre::KeyListener *)" (__imp_?addKeyListener@KeyTarget@Ogre@@QAEXPAVKeyListener@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::EventProcessor::startProcessingEvents(bool)" (__imp_?startProcessingEvents@EventProcessor@Ogre@@QAEX_N@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::OverlayManager::createCursorOverlay(void)" (__imp_?createCursorOverlay@OverlayManager@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::EventProcessor::initialise(class Ogre::RenderWindow *)" (__imp_?initialise@EventProcessor@Ogre@@QAEXPAVRenderWindow@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::EventProcessor::EventProcessor(void)" (__imp_??0EventProcessor@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::OverlayManager & __cdecl Ogre::OverlayManager::getSingleton(void)" (__imp_?getSingleton@OverlayManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Vector3::Vector3(void)" (__imp_??0Vector3@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::KeyListener::KeyListener(void)" (__imp_??0KeyListener@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::FrameListener::FrameListener(void)" (__imp_??0FrameListener@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(class Ogre::Vector3 cons
t &)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 const & __thiscall Ogre::Camera::getDerivedPosition(void)const " (__imp_?getDerivedPosition@Camera@Ogre@@QBEABVVector3@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(class Ogre::Quaternion c
onst &)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABVQuaternion@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Quaternion const & __thiscall Ogre::Camera::getDerivedOrientation(void)const " (__imp_?getDerivedOrientation@Camera@Ogre@@QBEABVQuaternion@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::setDetailLevel(enum Ogre::SceneDetailLevel)" (__imp_?setDetailLevel@Camera@Ogre@@QAEXW4SceneDetailLevel@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::MaterialManager::setDefaultAnisotropy(unsigned int)" (__imp_?setDefaultAnisotropy@MaterialManager@Ogre@@QAEXI@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::MaterialManager & __cdecl Ogre::MaterialManager::getSingleton(void)" (__imp_?getSingleton@MaterialManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::yaw(class Ogre::Radian const &)" (__imp_?yaw@Camera@Ogre@@QAEXABVRadian@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static float __cdecl Ogre::Math::DegreesToRadians(float)" (__imp_?DegreesToRadians@Math@Ogre@@SAMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Overlay::hide(void)" (__imp_?hide@Overlay@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Overlay::show(void)" (__imp_?show@Overlay@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::moveRelative(class Ogre::Vector3 const &)" (__imp_?moveRelative@Camera@Ogre@@QAEXABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::pitch(class Ogre::Radian const &)" (__imp_?pitch@Camera@Ogre@@QAEXABVRadian@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const & __thiscall Ogre::RenderTarget::getDebugText(void)const " (__imp
_?getDebugText@RenderTarget@Ogre@@QBEABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(unsigned int,unsigned sh
ort,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@IGDH@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(unsigned long,unsigned s
hort,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@KGDH@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(float,unsigned short,uns
igned short,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@MGGDH@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::GuiElement * __thiscall Ogre::GuiManager::getGuiElement(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > con
st &,bool)" (__imp_?getGuiElement@GuiManager@Ogre@@QAEPAVGuiElement@2@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@_N@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::GuiManager & __cdecl Ogre::GuiManager::getSingleton(void)" (__imp_?getSingleton@GuiManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char __thiscall Ogre::KeyEvent::getKeyChar(void)" (__imp_?getKeyChar@KeyEvent@Ogre@@QAEDXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::PlatformManager::destroyInputReader(class Ogre::InputReader *)" (__imp_?destroyInputReader@PlatformManager@Ogre@@QAEXPAVInputReader@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::EventProcessor::~EventProcessor(void)" (__imp_??1EventProcessor@Ogre@@UAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall Ogre::Viewport::getActualHeight(void)const " (__imp_?getActualHeight@Viewport@Ogre@@QBEHXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall Ogre::Viewport::getActualWidth(void)const " (__imp_?getActualWidth@Viewport@Ogre@@QBEHXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Viewport::setBackgroundColour(class Ogre::ColourValue const &)" (__imp_?setBackgroundColour@Viewport@Ogre@@QAEXABVColourValue@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ColourValue::ColourValue(float,float,float,float)" (__imp_??0ColourValue@Ogre@@QAE@MMMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ConfigFile::~ConfigFile(void)" (__imp_??1ConfigFile@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl Ogre::ResourceManager::addCommonArchiveEx(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,c
lass _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (__imp_?addCommonArchiveEx@ResourceManager@Ogre@@SAXABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@0@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::MapIterator<class _STL::multimap<class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> >,class _STL::basic_string<c
har,class _STL::char_traits<char>,class _STL::allocator<char> >,struct _STL::less<class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > >,class _STL::allocator<struct _STL::pair<class _STL::basic_string<char,class
 _STL::char_traits<char>,class _STL::allocator<char> > const ,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > > > > > __thiscall Ogre::ConfigFile::getSettingsIterator(void)" (__imp_?getSettingsIterator@Confi
gFile@Ogre@@QAE?AV?$MapIterator@V?$multimap@V?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@V12@U?$less@V?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DV?$char_traits@D@_ST
L@@V?$allocator@D@2@@_STL@@V12@@_STL@@@2@@_STL@@@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::ConfigFile::load(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,class _STL::basic_string
<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &,bool)" (__imp_?load@ConfigFile@Ogre@@QAEXABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@0_N@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ConfigFile::ConfigFile(void)" (__imp_??0ConfigFile@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Root::~Root(void)" (__imp_??1Root@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Light::setPosition(float,float,float)" (__imp_?setPosition@Light@Ogre@@QAEXMMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 __thiscall Ogre::Vector3::operator-(void)const " (__imp_??GVector3@Ogre@@QBE?AV01@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::Vector3 const Ogre::Vector3::UNIT_Y" (__imp_?UNIT_Y@Vector3@Ogre@@2V12@B)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Plane::Plane(void)" (__imp_??0Plane@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::SceneManager::setAmbientLight(class Ogre::ColourValue const &)" (__imp_?setAmbientLight@SceneManager@Ogre@@QAEXABVColourValue@2@@Z)
SkyPlane.exe : fatal error LNK1120: 74 unresolved externals
Error executing cl.exe.

SkyPlane.obj - 75 error(s), 0 warning(s)
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

As I said before: Don't use VCs global lib directories for the Ogre dirs, but the "additional directories" (Or whatever they are called in your VC). And show us your linker command line.

btw what is your VC version?
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
Mindslaver
Gnoblar
Posts: 21
Joined: Sun Dec 12, 2004 5:53 pm
Location: United States

Post by Mindslaver »

I am using Visual C++ version 6.0.

Here is my linker command line (I think):
ogremain_d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo
I didn't use VC Global Directories.

Is it a DLL problem?
User avatar
Mindslaver
Gnoblar
Posts: 21
Joined: Sun Dec 12, 2004 5:53 pm
Location: United States

Post by Mindslaver »

For some reason, I am getting linker errors while compiling.
<html>
<body>
<pre>
<h1>Build Log</h1>
<h3>
--------------------Configuration: Test - Win32 Debug--------------------
</h3>
<h3>Command Lines</h3>
Creating temporary file "C:\DOCUME~1\Owner\LOCALS~1\Temp\RSP8A.tmp" with contents
[
/nologo /MDd /W3 /Gm /GX /ZI /I "..\Common\Include" /I "..\..\OgreMain\include" /D "_WINDOWS" /D "_STLP_USE_DYNAMIC_LIB" /D "OGRE_LIBRARY_IMPORTS" /D "_DEBUG" /D "WIN32" /D "_STLP_DEBUG" /Fo"Debug/" /Fd"Debug/" /FD /GZ /Zm1000
"C:\OGRE3D\OGRENEW\SAMPLES\Test\SkyPlane.cpp"
]
Creating command line "cl.exe @C:\DOCUME~1\Owner\LOCALS~1\Temp\RSP8A.tmp"
<h3>Output Window</h3>
Compiling...
SkyPlane.cpp
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager::op_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::MemoryManager Ogre::MemoryManager::sMemManager" (__imp_?sMemManager@MemoryManager@Ogre@@2V12@A)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol __imp__MessageBoxA@16
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > __thiscall Ogre::Exception::getFullDescription(void)const " (__imp_?getFullDescription@Exception@Ogre@@QBE?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Root::startRendering(void)" (__imp_?startRendering@Root@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::TextureManager & __cdecl Ogre::TextureManager::getSingleton(void)" (__imp_?getSingleton@TextureManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Root::Root(class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > const &,class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > const &,class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > const &)" (__imp_??0Root@Ogre@@QAE@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@00@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::MemoryManager::setOwner(char const *,unsigned int,char const *)" (__imp_?setOwner@MemoryManager@Ogre@@QAEXPBDI0@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::RenderWindow * __thiscall Ogre::Root::initialise(bool,class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > const &)" (__imp_?initialise@Root@Ogre@@QAEPAVRenderWindow@2@_NABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall Ogre::Root::showConfigDialog(void)" (__imp_?showConfigDialog@Root@Ogre@@QAE_NXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::SceneManager * __thiscall Ogre::Root::getSceneManager(enum Ogre::SceneType)" (__imp_?getSceneManager@Root@Ogre@@QAEPAVSceneManager@2@W4SceneType@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::lookAt(class Ogre::Vector3 const &)" (__imp_?lookAt@Camera@Ogre@@QAEXABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::setPosition(class Ogre::Vector3 const &)" (__imp_?setPosition@Camera@Ogre@@QAEXABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Vector3::Vector3(float,float,float)" (__imp_??0Vector3@Ogre@@QAE@MMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Root::addFrameListener(class Ogre::FrameListener *)" (__imp_?addFrameListener@Root@Ogre@@QAEXPAVFrameListener@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::FrameListener::frameEnded(struct Ogre::FrameEvent const &)" (?frameEnded@FrameListener@Ogre@@UAE_NABUFrameEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::EventProcessor::frameStarted(struct Ogre::FrameEvent const &)" (?frameStarted@EventProcessor@Ogre@@UAE_NABUFrameEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::KeyListener::keyFocusOut(class Ogre::KeyEvent *)" (?keyFocusOut@KeyListener@Ogre@@UAEXPAVKeyEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::KeyListener::keyFocusIn(class Ogre::KeyEvent *)" (?keyFocusIn@KeyListener@Ogre@@UAEXPAVKeyEvent@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::EventListener::isMulticaster(void)const " (?isMulticaster@EventListener@Ogre@@UBE_NXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::FrameListener::~FrameListener(void)" (__imp_??1FrameListener@Ogre@@UAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 & __thiscall Ogre::Vector3::operator=(class Ogre::Vector3 const &)" (__imp_??4Vector3@Ogre@@QAEAAV01@ABV01@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::Vector3 const Ogre::Vector3::ZERO" (__imp_?ZERO@Vector3@Ogre@@2V12@B)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::InputReader * __thiscall Ogre::PlatformManager::createInputReader(void)" (__imp_?createInputReader@PlatformManager@Ogre@@QAEPAVInputReader@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::PlatformManager & __cdecl Ogre::PlatformManager::getSingleton(void)" (__imp_?getSingleton@PlatformManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::InputReader * __thiscall Ogre::EventProcessor::getInputReader(void)" (__imp_?getInputReader@EventProcessor@Ogre@@QAEPAVInputReader@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::KeyTarget::addKeyListener(class Ogre::KeyListener *)" (__imp_?addKeyListener@KeyTarget@Ogre@@QAEXPAVKeyListener@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::EventProcessor::startProcessingEvents(bool)" (__imp_?startProcessingEvents@EventProcessor@Ogre@@QAEX_N@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::OverlayManager::createCursorOverlay(void)" (__imp_?createCursorOverlay@OverlayManager@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::EventProcessor::initialise(class Ogre::RenderWindow *)" (__imp_?initialise@EventProcessor@Ogre@@QAEXPAVRenderWindow@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::EventProcessor::EventProcessor(void)" (__imp_??0EventProcessor@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::OverlayManager & __cdecl Ogre::OverlayManager::getSingleton(void)" (__imp_?getSingleton@OverlayManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Vector3::Vector3(void)" (__imp_??0Vector3@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::KeyListener::KeyListener(void)" (__imp_??0KeyListener@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::FrameListener::FrameListener(void)" (__imp_??0FrameListener@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(class Ogre::Vector3 const &)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 const & __thiscall Ogre::Camera::getDerivedPosition(void)const " (__imp_?getDerivedPosition@Camera@Ogre@@QBEABVVector3@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(class Ogre::Quaternion const &)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABVQuaternion@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Quaternion const & __thiscall Ogre::Camera::getDerivedOrientation(void)const " (__imp_?getDerivedOrientation@Camera@Ogre@@QBEABVQuaternion@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::setDetailLevel(enum Ogre::SceneDetailLevel)" (__imp_?setDetailLevel@Camera@Ogre@@QAEXW4SceneDetailLevel@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::MaterialManager::setDefaultAnisotropy(unsigned int)" (__imp_?setDefaultAnisotropy@MaterialManager@Ogre@@QAEXI@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::MaterialManager & __cdecl Ogre::MaterialManager::getSingleton(void)" (__imp_?getSingleton@MaterialManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::yaw(class Ogre::Radian const &)" (__imp_?yaw@Camera@Ogre@@QAEXABVRadian@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static float __cdecl Ogre::Math::DegreesToRadians(float)" (__imp_?DegreesToRadians@Math@Ogre@@SAMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Overlay::hide(void)" (__imp_?hide@Overlay@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Overlay::show(void)" (__imp_?show@Overlay@Ogre@@QAEXXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::moveRelative(class Ogre::Vector3 const &)" (__imp_?moveRelative@Camera@Ogre@@QAEXABVVector3@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::pitch(class Ogre::Radian const &)" (__imp_?pitch@Camera@Ogre@@QAEXABVRadian@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > const & __thiscall Ogre::RenderTarget::getDebugText(void)const " (__imp_?getDebugText@RenderTarget@Ogre@@QBEABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(unsigned int,unsigned short,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@IGDH@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(unsigned long,unsigned short,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@KGDH@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > __cdecl Ogre::StringConverter::toString(float,unsigned short,unsigned short,char,int)" (__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@MGGDH@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::GuiElement * __thiscall Ogre::GuiManager::getGuiElement(class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > const &,bool)" (__imp_?getGuiElement@GuiManager@Ogre@@QAEPAVGuiElement@2@ABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@_N@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::GuiManager & __cdecl Ogre::GuiManager::getSingleton(void)" (__imp_?getSingleton@GuiManager@Ogre@@SAAAV12@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char __thiscall Ogre::KeyEvent::getKeyChar(void)" (__imp_?getKeyChar@KeyEvent@Ogre@@QAEDXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::PlatformManager::destroyInputReader(class Ogre::InputReader *)" (__imp_?destroyInputReader@PlatformManager@Ogre@@QAEXPAVInputReader@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::EventProcessor::~EventProcessor(void)" (__imp_??1EventProcessor@Ogre@@UAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall Ogre::Viewport::getActualHeight(void)const " (__imp_?getActualHeight@Viewport@Ogre@@QBEHXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall Ogre::Viewport::getActualWidth(void)const " (__imp_?getActualWidth@Viewport@Ogre@@QBEHXZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Viewport::setBackgroundColour(class Ogre::ColourValue const &)" (__imp_?setBackgroundColour@Viewport@Ogre@@QAEXABVColourValue@2@@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ColourValue::ColourValue(float,float,float,float)" (__imp_??0ColourValue@Ogre@@QAE@MMMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ConfigFile::~ConfigFile(void)" (__imp_??1ConfigFile@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl Ogre::ResourceManager::addCommonArchiveEx(class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > const &,class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > const &)" (__imp_?addCommonArchiveEx@ResourceManager@Ogre@@SAXABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@0@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::MapIterator<class _STL::multimap,class _STL::allocator<char> >,class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> >,struct _STL::less<class _STL::basic_string,class _STL::allocator<char> > >,class _STL::allocator<struct _STL::pair,class _STL::allocator<char> > const ,class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > > > > > __thiscall Ogre::ConfigFile::getSettingsIterator(void)" (__imp_?getSettingsIterator@ConfigFile@Ogre@@QAE?AV?$MapIterator@V?$multimap@V?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@V12@U?$less@V?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@V12@@_STL@@@2@@_STL@@@2@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::ConfigFile::load(class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > const &,class _STL::basic_string<char,class _STL::char_traits,class _STL::allocator<char> > const &,bool)" (__imp_?load@ConfigFile@Ogre@@QAEXABV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@0_N@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ConfigFile::ConfigFile(void)" (__imp_??0ConfigFile@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Root::~Root(void)" (__imp_??1Root@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Light::setPosition(float,float,float)" (__imp_?setPosition@Light@Ogre@@QAEXMMM@Z)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 __thiscall Ogre::Vector3::operator-(void)const " (__imp_??GVector3@Ogre@@QBE?AV01@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::Vector3 const Ogre::Vector3::UNIT_Y" (__imp_?UNIT_Y@Vector3@Ogre@@2V12@B)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Plane::Plane(void)" (__imp_??0Plane@Ogre@@QAE@XZ)
SkyPlane.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::SceneManager::setAmbientLight(class Ogre::ColourValue const &)" (__imp_?setAmbientLight@SceneManager@Ogre@@QAEXABVColourValue@2@@Z)
SkyPlane.exe : fatal error LNK1120: 74 unresolved externals
Error executing cl.exe.



<h3>Results</h3>
SkyPlane.obj - 75 error(s), 0 warning(s)
</pre>
</body>
</html>
Could someone explain to me why this is so?