Stuck at tutorials

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
sxie11
Gnoblar
Posts: 3
Joined: Tue Apr 05, 2016 7:57 am

Stuck at tutorials

Post by sxie11 »

I'm a newbie in Ogre and C++. I was just running the tutorial apps and the output is like this. Could anyone help me read it?

Code: Select all

1>------ Build started: Project: Skywalker, Configuration: Debug Win32 ------
1>  Skywalker.cpp
1>c:\ogresdk\ogresdk_vc11_v1-9-0\include\ogre\ogremath.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>c:\cppproj\skywalker\skywalker\skywalker.cpp(18): warning C4305: 'argument' : truncation from 'double' to 'Ogre::Real'
1>c:\cppproj\skywalker\skywalker\skywalker.cpp(28): warning C4305: 'argument' : truncation from 'double' to 'float'
1>c:\cppproj\skywalker\skywalker\skywalker.cpp(30): warning C4305: 'argument' : truncation from 'double' to 'const Ogre::Real'
1>c:\cppproj\skywalker\skywalker\skywalker.cpp(37): warning C4305: 'argument' : truncation from 'double' to 'float'
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::TerrainLayerBlendMap::convertImageToTerrainSpace(unsigned int,unsigned int,float *,float *)" (__imp_?convertImageToTerrainSpace@TerrainLayerBlendMap@Ogre@@QAEXIIPAM0@Z) referenced in function "private: void __thiscall Skywalker::initBlendMaps(class Ogre::Terrain *)" (?initBlendMaps@Skywalker@@AAEXPAVTerrain@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float * __thiscall Ogre::TerrainLayerBlendMap::getBlendPointer(void)" (__imp_?getBlendPointer@TerrainLayerBlendMap@Ogre@@QAEPAMXZ) referenced in function "private: void __thiscall Skywalker::initBlendMaps(class Ogre::Terrain *)" (?initBlendMaps@Skywalker@@AAEXPAVTerrain@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::TerrainLayerBlendMap::dirty(void)" (__imp_?dirty@TerrainLayerBlendMap@Ogre@@QAEXXZ) referenced in function "private: void __thiscall Skywalker::initBlendMaps(class Ogre::Terrain *)" (?initBlendMaps@Skywalker@@AAEXPAVTerrain@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::TerrainLayerBlendMap::update(void)" (__imp_?update@TerrainLayerBlendMap@Ogre@@QAEXXZ) referenced in function "private: void __thiscall Skywalker::initBlendMaps(class Ogre::Terrain *)" (?initBlendMaps@Skywalker@@AAEXPAVTerrain@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Terrain::LayerInstance::LayerInstance(void)" (__imp_??0LayerInstance@Terrain@Ogre@@QAE@XZ) referenced in function "public: void __thiscall Ogre::STLAllocator<struct Ogre::Terrain::LayerInstance,class Ogre::CategorisedAllocPolicy<0> >::construct(struct Ogre::Terrain::LayerInstance *)" (?construct@?$STLAllocator@ULayerInstance@Terrain@Ogre@@V?$CategorisedAllocPolicy@$0A@@3@@Ogre@@QAEXPAULayerInstance@Terrain@2@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Terrain::LayerInstance::~LayerInstance(void)" (__imp_??1LayerInstance@Terrain@Ogre@@QAE@XZ) referenced in function "public: void * __thiscall Ogre::Terrain::LayerInstance::`scalar deleting destructor'(unsigned int)" (??_GLayerInstance@Terrain@Ogre@@QAEPAXI@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Terrain::LayerInstance::LayerInstance(struct Ogre::Terrain::LayerInstance const &)" (__imp_??0LayerInstance@Terrain@Ogre@@QAE@ABU012@@Z) referenced in function "public: void __thiscall Ogre::STLAllocator<struct Ogre::Terrain::LayerInstance,class Ogre::CategorisedAllocPolicy<0> >::construct(struct Ogre::Terrain::LayerInstance *,struct Ogre::Terrain::LayerInstance const &)" (?construct@?$STLAllocator@ULayerInstance@Terrain@Ogre@@V?$CategorisedAllocPolicy@$0A@@3@@Ogre@@QAEXPAULayerInstance@Terrain@2@ABU342@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct Ogre::Terrain::LayerInstance & __thiscall Ogre::Terrain::LayerInstance::operator=(struct Ogre::Terrain::LayerInstance const &)" (__imp_??4LayerInstance@Terrain@Ogre@@QAEAAU012@ABU012@@Z) referenced in function "struct Ogre::Terrain::LayerInstance * __cdecl std::_Move<struct Ogre::Terrain::LayerInstance *,struct Ogre::Terrain::LayerInstance *>(struct Ogre::Terrain::LayerInstance *,struct Ogre::Terrain::LayerInstance *,struct Ogre::Terrain::LayerInstance *,struct std::_Nonscalar_ptr_iterator_tag)" (??$_Move@PAULayerInstance@Terrain@Ogre@@PAU123@@std@@YAPAULayerInstance@Terrain@Ogre@@PAU123@00U_Nonscalar_ptr_iterator_tag@0@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __thiscall Ogre::Terrain::getHeightAtTerrainPosition(float,float)const " (__imp_?getHeightAtTerrainPosition@Terrain@Ogre@@QBEMMM@Z) referenced in function "private: void __thiscall Skywalker::initBlendMaps(class Ogre::Terrain *)" (?initBlendMaps@Skywalker@@AAEXPAVTerrain@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short __thiscall Ogre::Terrain::getLayerBlendMapSize(void)const " (__imp_?getLayerBlendMapSize@Terrain@Ogre@@QBEGXZ) referenced in function "private: void __thiscall Skywalker::initBlendMaps(class Ogre::Terrain *)" (?initBlendMaps@Skywalker@@AAEXPAVTerrain@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::TerrainLayerBlendMap * __thiscall Ogre::Terrain::getLayerBlendMap(unsigned char)" (__imp_?getLayerBlendMap@Terrain@Ogre@@QAEPAVTerrainLayerBlendMap@2@E@Z) referenced in function "private: void __thiscall Skywalker::initBlendMaps(class Ogre::Terrain *)" (?initBlendMaps@Skywalker@@AAEXPAVTerrain@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::TerrainGlobalOptions::TerrainGlobalOptions(void)" (__imp_??0TerrainGlobalOptions@Ogre@@QAE@XZ) referenced in function "protected: virtual void __thiscall Skywalker::createScene(void)" (?createScene@Skywalker@@MAEXXZ)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::TerrainGlobalOptions::~TerrainGlobalOptions(void)" (__imp_??1TerrainGlobalOptions@Ogre@@UAE@XZ) referenced in function "public: virtual void * __thiscall Ogre::TerrainGlobalOptions::`scalar deleting destructor'(unsigned int)" (??_GTerrainGlobalOptions@Ogre@@UAEPAXI@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::TerrainGlobalOptions::setLightMapDirection(class Ogre::Vector3 const &)" (__imp_?setLightMapDirection@TerrainGlobalOptions@Ogre@@QAEXABVVector3@2@@Z) referenced in function "private: void __thiscall Skywalker::configureTerrainDefaults(class Ogre::Light *)" (?configureTerrainDefaults@Skywalker@@AAEXPAVLight@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::TerrainGlobalOptions::setCompositeMapAmbient(class Ogre::ColourValue const &)" (__imp_?setCompositeMapAmbient@TerrainGlobalOptions@Ogre@@QAEXABVColourValue@2@@Z) referenced in function "private: void __thiscall Skywalker::configureTerrainDefaults(class Ogre::Light *)" (?configureTerrainDefaults@Skywalker@@AAEXPAVLight@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::TerrainGlobalOptions::setCompositeMapDiffuse(class Ogre::ColourValue const &)" (__imp_?setCompositeMapDiffuse@TerrainGlobalOptions@Ogre@@QAEXABVColourValue@2@@Z) referenced in function "private: void __thiscall Skywalker::configureTerrainDefaults(class Ogre::Light *)" (?configureTerrainDefaults@Skywalker@@AAEXPAVLight@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::TerrainGlobalOptions::setCompositeMapDistance(float)" (__imp_?setCompositeMapDistance@TerrainGlobalOptions@Ogre@@QAEXM@Z) referenced in function "private: void __thiscall Skywalker::configureTerrainDefaults(class Ogre::Light *)" (?configureTerrainDefaults@Skywalker@@AAEXPAVLight@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::TerrainGlobalOptions::setMaxPixelError(float)" (__imp_?setMaxPixelError@TerrainGlobalOptions@Ogre@@QAEXM@Z) referenced in function "private: void __thiscall Skywalker::configureTerrainDefaults(class Ogre::Light *)" (?configureTerrainDefaults@Skywalker@@AAEXPAVLight@Ogre@@@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::TerrainGroup::TerrainGroup(class Ogre::SceneManager *,enum Ogre::Terrain::Alignment,unsigned short,float)" (__imp_??0TerrainGroup@Ogre@@QAE@PAVSceneManager@1@W4Alignment@Terrain@1@GM@Z) referenced in function "protected: virtual void __thiscall Skywalker::createScene(void)" (?createScene@Skywalker@@MAEXXZ)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::TerrainGroup::~TerrainGroup(void)" (__imp_??1TerrainGroup@Ogre@@UAE@XZ) referenced in function "public: virtual void * __thiscall Ogre::TerrainGroup::`scalar deleting destructor'(unsigned int)" (??_GTerrainGroup@Ogre@@UAEPAXI@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::TerrainGroup::setFilenameConvention(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?setFilenameConvention@TerrainGroup@Ogre@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) referenced in function "protected: virtual void __thiscall Skywalker::createScene(void)" (?createScene@Skywalker@@MAEXXZ)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall Ogre::TerrainGroup::getResourceGroup(void)const " (__imp_?getResourceGroup@TerrainGroup@Ogre@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function "private: void __thiscall Skywalker::defineTerrain(long,long)" (?defineTerrain@Skywalker@@AAEXJJ@Z)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::TerrainGroup::freeTemporaryResources(void)" (__imp_?freeTemporaryResources@TerrainGroup@Ogre@@QAEXXZ) referenced in function "protected: virtual void __thiscall Skywalker::createScene(void)" (?createScene@Skywalker@@MAEXXZ)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::MapIterator<class std::map<unsigned int,struct Ogre::TerrainGroup::TerrainSlot *,struct std::less<unsigned int>,class Ogre::STLAllocator<struct std::pair<unsigned int const ,struct Ogre::TerrainGroup::TerrainSlot *>,class Ogre::CategorisedAllocPolicy<0> > > > __thiscall Ogre::TerrainGroup::getTerrainIterator(void)" (__imp_?getTerrainIterator@TerrainGroup@Ogre@@QAE?AV?$MapIterator@V?$map@IPAUTerrainSlot@TerrainGroup@Ogre@@U?$less@I@std@@V?$STLAllocator@U?$pair@$$CBIPAUTerrainSlot@TerrainGroup@Ogre@@@std@@V?$CategorisedAllocPolicy@$0A@@Ogre@@@3@@std@@@2@XZ) referenced in function "protected: virtual void __thiscall Skywalker::createScene(void)" (?createScene@Skywalker@@MAEXXZ)
1>Skywalker.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Ogre::TerrainGroup::generateFilename(long,long)const " (__imp_?generateFilename@TerrainGroup@Ogre@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@JJ@Z) referenced in function "private: void __thiscall Skywalker::defineTerrain(long,long)" (?defineTerrain@Skywalker@@AAEXJJ@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::TerrainGroup::canHandleRequest(class Ogre::WorkQueue::Request const *,class Ogre::WorkQueue const *)" (?canHandleRequest@TerrainGroup@Ogre@@UAE_NPBVRequest@WorkQueue@2@PBV42@@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::TerrainGroup::canHandleResponse(struct Ogre::WorkQueue::Response const *,class Ogre::WorkQueue const *)" (?canHandleResponse@TerrainGroup@Ogre@@UAE_NPBUResponse@WorkQueue@2@PBV42@@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::defineTerrain(long,long)" (?defineTerrain@TerrainGroup@Ogre@@UAEXJJ@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::defineTerrain(long,long,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?defineTerrain@TerrainGroup@Ogre@@UAEXJJABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::defineTerrain(long,long,float)" (?defineTerrain@TerrainGroup@Ogre@@UAEXJJM@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::defineTerrain(long,long,float const *,class std::vector<struct Ogre::Terrain::LayerInstance,class Ogre::STLAllocator<struct Ogre::Terrain::LayerInstance,class Ogre::CategorisedAllocPolicy<0> > > const *)" (?defineTerrain@TerrainGroup@Ogre@@UAEXJJPBMPBV?$vector@ULayerInstance@Terrain@Ogre@@V?$STLAllocator@ULayerInstance@Terrain@Ogre@@V?$CategorisedAllocPolicy@$0A@@3@@3@@std@@@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::defineTerrain(long,long,struct Ogre::Terrain::ImportData const *)" (?defineTerrain@TerrainGroup@Ogre@@UAEXJJPBUImportData@Terrain@2@@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::defineTerrain(long,long,class Ogre::Image const *,class std::vector<struct Ogre::Terrain::LayerInstance,class Ogre::STLAllocator<struct Ogre::Terrain::LayerInstance,class Ogre::CategorisedAllocPolicy<0> > > const *)" (?defineTerrain@TerrainGroup@Ogre@@UAEXJJPBVImage@2@PBV?$vector@ULayerInstance@Terrain@Ogre@@V?$STLAllocator@ULayerInstance@Terrain@Ogre@@V?$CategorisedAllocPolicy@$0A@@3@@3@@std@@@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual enum Ogre::Terrain::Alignment __thiscall Ogre::TerrainGroup::getAlignment(void)const " (?getAlignment@TerrainGroup@Ogre@@UBE?AW4Alignment@Terrain@2@XZ)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual struct Ogre::Terrain::ImportData & __thiscall Ogre::TerrainGroup::getDefaultImportSettings(void)" (?getDefaultImportSettings@TerrainGroup@Ogre@@UAEAAUImportData@Terrain@2@XZ)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual class Ogre::Vector3 const & __thiscall Ogre::TerrainGroup::getOrigin(void)const " (?getOrigin@TerrainGroup@Ogre@@UBEABVVector3@2@XZ)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual class Ogre::SceneManager * __thiscall Ogre::TerrainGroup::getSceneManager(void)const " (?getSceneManager@TerrainGroup@Ogre@@UBEPAVSceneManager@2@XZ)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual class Ogre::Terrain * __thiscall Ogre::TerrainGroup::getTerrain(long,long)const " (?getTerrain@TerrainGroup@Ogre@@UBEPAVTerrain@2@JJ@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual struct Ogre::TerrainGroup::TerrainSlotDefinition * __thiscall Ogre::TerrainGroup::getTerrainDefinition(long,long)const " (?getTerrainDefinition@TerrainGroup@Ogre@@UBEPAUTerrainSlotDefinition@12@JJ@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual unsigned short __thiscall Ogre::TerrainGroup::getTerrainSize(void)const " (?getTerrainSize@TerrainGroup@Ogre@@UBEGXZ)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual float __thiscall Ogre::TerrainGroup::getTerrainWorldSize(void)const " (?getTerrainWorldSize@TerrainGroup@Ogre@@UBEMXZ)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual struct Ogre::WorkQueue::Response * __thiscall Ogre::TerrainGroup::handleRequest(class Ogre::WorkQueue::Request const *,class Ogre::WorkQueue const *)" (?handleRequest@TerrainGroup@Ogre@@UAEPAUResponse@WorkQueue@2@PBVRequest@42@PBV42@@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::handleResponse(struct Ogre::WorkQueue::Response const *,class Ogre::WorkQueue const *)" (?handleResponse@TerrainGroup@Ogre@@UAEXPBUResponse@WorkQueue@2@PBV42@@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::loadAllTerrains(bool)" (?loadAllTerrains@TerrainGroup@Ogre@@UAEX_N@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::loadTerrain(long,long,bool)" (?loadTerrain@TerrainGroup@Ogre@@UAEXJJ_N@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::removeTerrain(long,long)" (?removeTerrain@TerrainGroup@Ogre@@UAEXJJ@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::setOrigin(class Ogre::Vector3 const &)" (?setOrigin@TerrainGroup@Ogre@@UAEXABVVector3@2@@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::setTerrainSize(unsigned short)" (?setTerrainSize@TerrainGroup@Ogre@@UAEXG@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::setTerrainWorldSize(float)" (?setTerrainWorldSize@TerrainGroup@Ogre@@UAEXM@Z)
1>Skywalker.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::TerrainGroup::unloadTerrain(long,long)" (?unloadTerrain@TerrainGroup@Ogre@@UAEXJJ@Z)
1>C:\CppProj\Skywalker\Debug\Skywalker.exe : fatal error LNK1120: 50 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
User avatar
insider
Orc
Posts: 462
Joined: Thu Sep 15, 2011 12:50 pm
x 31

Re: Stuck at tutorials

Post by insider »

I think you forgot to link the OgreTerrain_d.lib :)
sxie11
Gnoblar
Posts: 3
Joined: Tue Apr 05, 2016 7:57 am

Re: Stuck at tutorials

Post by sxie11 »

insider wrote:I think you forgot to link the OgreTerrain_d.lib :)
Yes. I tried again. Thanks a lot :wink: