Menu

Building CoreLibrary 1.3.0 with VS 9

Help
shin
2011-04-28
2013-04-02
  • shin

    shin - 2011-04-28

    Hi,

    I'm trying to build in TestProject in CoreLibrary 1.3.0 with Visual Studio 9. The conversion of TestProject.dsw went smoothly without problems. Then I chose the Building profile "Debug Test" and hit the Build bottun and some errors appeared.
    The first error I've got was:

    error C2504: 'TCPReceiver' : base class undefined

    This was easily solved. I just had to add

    using namespace cmlabs;
    

    in test.h and then I builded the project again. Now i've got this things:

    1>CoreLibraryDebug.lib(Object.obj) : error LNK2019: unresolved external symbol "public: __thiscall cmlabs::CMMap::CMMap(class cmlabs::XMLNode *)" (??0CMMap@cmlabs@@QAE@PAVXMLNode@1@@Z) referenced in function "public: static class cmlabs::Object * __cdecl cmlabs::Object::createObjectFromXML(class cmlabs::XMLNode *)" (?createObjectFromXML@Object@cmlabs@@SAPAV12@PAVXMLNode@2@@Z)
    1>CoreLibraryDebug.lib(Object.obj) : error LNK2019: unresolved external symbol "public: __thiscall cmlabs::CMObject::CMObject(class cmlabs::XMLNode *)" (??0CMObject@cmlabs@@QAE@PAVXMLNode@1@@Z) referenced in function "public: static class cmlabs::Object * __cdecl cmlabs::Object::createObjectFromXML(class cmlabs::XMLNode *)" (?createObjectFromXML@Object@cmlabs@@SAPAV12@PAVXMLNode@2@@Z)
    1>CoreLibraryDebug.lib(Object.obj) : error LNK2019: unresolved external symbol "public: __thiscall cmlabs::CMManipulator::CMManipulator(class cmlabs::XMLNode *)" (??0CMManipulator@cmlabs@@QAE@PAVXMLNode@1@@Z) referenced in function "public: static class cmlabs::Object * __cdecl cmlabs::Object::createObjectFromXML(class cmlabs::XMLNode *)" (?createObjectFromXML@Object@cmlabs@@SAPAV12@PAVXMLNode@2@@Z)
    1>CoreLibraryDebug.lib(Object.obj) : error LNK2019: unresolved external symbol "public: __thiscall cmlabs::CMPose::CMPose(class cmlabs::XMLNode *)" (??0CMPose@cmlabs@@QAE@PAVXMLNode@1@@Z) referenced in function "public: static class cmlabs::Object * __cdecl cmlabs::Object::createObjectFromXML(class cmlabs::XMLNode *)" (?createObjectFromXML@Object@cmlabs@@SAPAV12@PAVXMLNode@2@@Z)
    1>CoreLibraryDebug.lib(Object.obj) : error LNK2019: unresolved external symbol "public: __thiscall cmlabs::CMPoint::CMPoint(class cmlabs::XMLNode *)" (??0CMPoint@cmlabs@@QAE@PAVXMLNode@1@@Z) referenced in function "public: static class cmlabs::Object * __cdecl cmlabs::Object::createObjectFromXML(class cmlabs::XMLNode *)" (?createObjectFromXML@Object@cmlabs@@SAPAV12@PAVXMLNode@2@@Z)
    1>CoreLibraryDebug.lib(Object.obj) : error LNK2019: unresolved external symbol "public: __thiscall cmlabs::CMMeasurement::CMMeasurement(class cmlabs::XMLNode *)" (??0CMMeasurement@cmlabs@@QAE@PAVXMLNode@1@@Z) referenced in function "public: static class cmlabs::Object * __cdecl cmlabs::Object::createObjectFromXML(class cmlabs::XMLNode *)" (?createObjectFromXML@Object@cmlabs@@SAPAV12@PAVXMLNode@2@@Z)
    1>CoreLibraryDebug.lib(Object.obj) : error LNK2019: unresolved external symbol "public: __thiscall cmlabs::ObjectObservation::ObjectObservation(class cmlabs::XMLNode *)" (??0ObjectObservation@cmlabs@@QAE@PAVXMLNode@1@@Z) referenced in function "public: static class cmlabs::Object * __cdecl cmlabs::Object::createObjectFromXML(class cmlabs::XMLNode *)" (?createObjectFromXML@Object@cmlabs@@SAPAV12@PAVXMLNode@2@@Z)
    1>CoreLibraryDebug.lib(Object.obj) : error LNK2019: unresolved external symbol "public: __thiscall cmlabs::ObjectTrackEntry::ObjectTrackEntry(class cmlabs::XMLNode *)" (??0ObjectTrackEntry@cmlabs@@QAE@PAVXMLNode@1@@Z) referenced in function "public: static class cmlabs::Object * __cdecl cmlabs::Object::createObjectFromXML(class cmlabs::XMLNode *)" (?createObjectFromXML@Object@cmlabs@@SAPAV12@PAVXMLNode@2@@Z)
    1>CoreLibraryDebug.lib(Object.obj) : error LNK2019: unresolved external symbol "public: __thiscall cmlabs::ObjectTrack::ObjectTrack(class cmlabs::XMLNode *)" (??0ObjectTrack@cmlabs@@QAE@PAVXMLNode@1@@Z) referenced in function "public: static class cmlabs::Object * __cdecl cmlabs::Object::createObjectFromXML(class cmlabs::XMLNode *)" (?createObjectFromXML@Object@cmlabs@@SAPAV12@PAVXMLNode@2@@Z)
    1>CoreLibraryDebug.lib(CoreTest.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall cmlabs::CommunicationRecorder::initWriting(void)" (?initWriting@CommunicationRecorder@cmlabs@@QAE_NXZ) referenced in function "void __cdecl cmlabs::testCommunicationRecorder(void)" (?testCommunicationRecorder@cmlabs@@YAXXZ)
    1>CoreLibraryDebug.lib(CoreTest.obj) : error LNK2019: unresolved external symbol "public: __thiscall cmlabs::CommunicationRecorder::CommunicationRecorder(class cmlabs::JString const &,bool)" (??0CommunicationRecorder@cmlabs@@QAE@ABVJString@1@_N@Z) referenced in function "void __cdecl cmlabs::testCommunicationRecorder(void)" (?testCommunicationRecorder@cmlabs@@YAXXZ)
    1>CoreLibraryDebug.lib(MediaConnection.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall cmlabs::CommunicationRecorder::addNewSample(class cmlabs::DataSample *)" (?addNewSample@CommunicationRecorder@cmlabs@@QAE_NPAVDataSample@2@@Z) referenced in function "public: bool __thiscall cmlabs::MediaConnection::addDataSample(class cmlabs::DataSample *)" (?addDataSample@MediaConnection@cmlabs@@QAE_NPAVDataSample@2@@Z)
    1>CoreLibraryDebug.lib(MediaConnection.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall cmlabs::CommunicationRecorder::isPaused(void)" (?isPaused@CommunicationRecorder@cmlabs@@QAE_NXZ) referenced in function "public: bool __thiscall cmlabs::MediaConnection::addDataSample(class cmlabs::DataSample *)" (?addDataSample@MediaConnection@cmlabs@@QAE_NPAVDataSample@2@@Z)

    The first link error

    1>CoreLibraryDebug.lib(Object.obj) : error LNK2019: unresolved external symbol "public: __thiscall cmlabs::CMMap::CMMap(class cmlabs::XMLNode *)" (??0CMMap@cmlabs@@QAE@PAVXMLNode@1@@Z) referenced in function "public: static class cmlabs::Object * __cdecl cmlabs::Object::createObjectFromXML(class cmlabs::XMLNode *)" (?createObjectFromXML@Object@cmlabs@@SAPAV12@PAVXMLNode@2@@Z)
    

    can be eliminate, if you add CogMapObjects.h and CogMapObjects.cpp in the "thirdparty" folder of the "CoreLibary" and rebuild "CoreLibary". But the other link errors are still there and I don't know how to solve them. I think that some headers and source files went missing or the conversion wasn't so smoothly as I thought.

    Can somebody help me, please?

    shin

     
  • Thor List

    Thor List - 2011-04-28

    Hi Shin,

    The CoreLibrary includes ready-made project files for Visual Studio 6.0, .NET 2005 and .NET 2008. Instead of converting the .dsw file just open the correct .sln file in your matching version of Visual Studio. If you are running Visual Studio 2010 the 2008 file should work.

    Please let us know if you get this to work or still experience problems. If you do, please include information on which version of Visual Studio you are using.

    Hope this helps!

    Thor

     

Log in to post a comment.