certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [certi-dev] Error Running Helloworld example


From: Usman Awais
Subject: Re: [certi-dev] Error Running Helloworld example
Date: Tue, 8 Jan 2013 10:40:09 +0100

Hi,

Have you noticed that in the line

ountry.obj : error LNK2005: "public: __thiscall
Country::Country(void)" (??0Country@@address@hidden) already defined in
Country.obj

there is difference in "ountry.obj" and "Country.obj" is this a copy
paste error.

Otherwise it seems to be simple linker errors, it seems that you have
not included the path to libFEDTime and libRTI-NG to you code. This is
related to the basics of using a library in your code.

Regards,
Usman

On 1/8/13, Reema Choudhary <address@hidden> wrote:
> I am having trouble in running your example file.. I am getting following
> errors...
>
> 1>------ Rebuild All started: Project: helloworldtesting, Configuration:
> Debug Win32 ------
> 1>  ountry.cpp
> 1>  HwFederateAmbassador.cpp
> 1>  helloWorld.cpp
> 1>  Country.cpp
> 1>  Generating Code...
> 1>ountry.obj : error LNK2005: "public: __thiscall Country::Country(void)"
> (??0Country@@address@hidden) already defined in Country.obj
> 1>ountry.obj : error LNK2005: "public: virtual __thiscall
> Country::~Country(void)" (??1Country@@address@hidden) already defined in
> Country.obj
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: virtual __thiscall
> RTIfedTime::~RTIfedTime(void)" (__imp_??1RTIfedTime@@address@hidden) 
> referenced in
> function __unwindfunclet$??0Country@@address@hidden@Z$0
> 1>helloWorld.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual __thiscall
> RTIfedTime::~RTIfedTime(void)" (__imp_??1RTIfedTime@@address@hidden)
> 1>HwFederateAmbassador.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual __thiscall
> RTIfedTime::~RTIfedTime(void)" (__imp_??1RTIfedTime@@address@hidden)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: __thiscall RTIfedTime::RTIfedTime(double
> const &)" (__imp_??0RTIfedTime@@address@hidden@Z) referenced in function 
> "public:
> __thiscall Country::Country(char const *,char const *)" (??0Country@
> @address@hidden@Z)
> 1>helloWorld.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: __thiscall RTIfedTime::RTIfedTime(double
> const &)" (__imp_??0RTIfedTime@@address@hidden@Z)
> 1>HwFederateAmbassador.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: __thiscall RTIfedTime::RTIfedTime(double
> const &)" (__imp_??0RTIfedTime@@address@hidden@Z)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: struct RTI::EventRetractionHandle_s
> __thiscall RTI::RTIambassador::deleteObjectInstance(unsigned long,class
> RTI::FedTime const &,char const *)"
> (address@hidden@RTI@
> @address@hidden@address@hidden@address@hidden) referenced in
> function "public: virtual __thiscall Country::~Country(void)" (??1Country@
> @address@hidden)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: virtual double __thiscall
> RTIfedTime::getTime(void)const " (address@hidden@@UBENXZ)
> referenced in function "public: class RTIfedTime __thiscall
> Country::GetLastTimePlusLookahead(void)" (address@hidden
> @@QAE?AVRTIfedTime@@XZ)
> 1>helloWorld.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual double __thiscall
> RTIfedTime::getTime(void)const " (address@hidden@@UBENXZ)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: unsigned long __thiscall
> RTI::RTIambassador::getAttributeHandle(char const *,unsigned long)"
> (address@hidden@RTI@@address@hidden) referenced in
> function "public: static void __cdecl Country::Init(class
> RTI::RTIambassador *)" (address@hidden@@address@hidden@@@Z)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: unsigned long __thiscall
> RTI::RTIambassador::getObjectClassHandle(char const *)"
> (address@hidden@RTI@@address@hidden) referenced in
> function "public: static void __cdecl Country::Init(class
> RTI::RTIambassador *)" (address@hidden@@address@hidden@@@Z)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::publishInteractionClass(unsigned long)"
> (address@hidden@RTI@@address@hidden) referenced in
> function "public: void __thiscall Country::PublishAndSubscribe(void)"
> (address@hidden@@QAEXXZ)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::subscribeInteractionClass(unsigned long,enum
> RTI::Boolean)" (address@hidden@RTI@
> @address@hidden@@Z) referenced in function "public: void __thiscall
> Country::PublishAndSubscribe(void)" (address@hidden@@QAEXXZ)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: unsigned long __thiscall
> RTI::RTIambassador::getParameterHandle(char const *,unsigned long)"
> (address@hidden@RTI@@address@hidden) referenced in
> function "public: void __thiscall Country::PublishAndSubscribe(void)"
> (address@hidden@@QAEXXZ)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: unsigned long __thiscall
> RTI::RTIambassador::getInteractionClassHandle(char const *)"
> (address@hidden@RTI@@address@hidden) referenced
> in function "public: void __thiscall Country::PublishAndSubscribe(void)"
> (address@hidden@@QAEXXZ)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::publishObjectClass(unsigned long,class
> RTI::AttributeHandleSet const &)" (address@hidden
> @RTI@@address@hidden@@Z) referenced in function "public: void
> __thiscall Country::PublishAndSubscribe(void)"
> (address@hidden
> @@QAEXXZ)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::subscribeObjectClassAttributes(unsigned long,class
> RTI::AttributeHandleSet const &,enum RTI::Boolean)"
> (address@hidden@RTI@
> @address@hidden@address@hidden@@Z) referenced in function
> "public: void __thiscall Country::PublishAndSubscribe(void)"
> (address@hidden@@QAEXXZ)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static class RTI::AttributeHandleSet *
> __cdecl RTI::AttributeHandleSetFactory::create(unsigned long)"
> (address@hidden@RTI@@address@hidden@address@hidden)
> referenced in function "public: void __thiscall
> Country::PublishAndSubscribe(void)" (address@hidden@@QAEXXZ)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: unsigned long __thiscall
> RTI::RTIambassador::registerObjectInstance(unsigned long)"
> (address@hidden@RTI@@address@hidden) referenced in
> function "public: void __thiscall Country::Register(void)"
> (address@hidden@@QAEXXZ)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: struct RTI::EventRetractionHandle_s
> __thiscall RTI::RTIambassador::sendInteraction(unsigned long,class
> RTI::ParameterHandleValuePairSet const &,class RTI::FedTime const &,char
> const *)" (address@hidden@RTI@
> @address@hidden@address@hidden
> @address@hidden@address@hidden) referenced in function address@hidden
> @@QAEXAAVRTIfedTime@@@Z$0
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static class
> RTI::ParameterHandleValuePairSet * __cdecl
> RTI::ParameterSetFactory::create(unsigned long)"
> (address@hidden@RTI@@address@hidden
> @address@hidden) referenced in function address@hidden@@QAEXAAVRTIfedTime@
> @@Z$0
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) class std::basic_ostream<char,struct
> std::char_traits<char> > & __cdecl operator<<(class
> std::basic_ostream<char,struct std::char_traits<char> > &,class
> RTI::Exception *)" (address@hidden@address@hidden@std@
> @@std@@address@hidden@RTI@@@Z) referenced in function
> address@hidden@@QAEXAAVRTIfedTime@@@Z$0
> 1>helloWorld.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) class std::basic_ostream<char,struct
> std::char_traits<char> > & __cdecl operator<<(class
> std::basic_ostream<char,struct std::char_traits<char> > &,class
> RTI::Exception *)" (address@hidden@address@hidden@std@
> @@std@@address@hidden@RTI@@@Z)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: struct RTI::EventRetractionHandle_s
> __thiscall RTI::RTIambassador::updateAttributeValues(unsigned long,class
> RTI::AttributeHandleValuePairSet const &,class RTI::FedTime const &,char
> const *)" (address@hidden@RTI@
> @address@hidden@address@hidden
> @address@hidden@address@hidden) referenced in function "public: void 
> __thiscall
> Country::Update(class RTIfedTime &)" (address@hidden@@QAEXAAVRTIfedTime@
> @@Z)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: __thiscall RTIfedTime::RTIfedTime(class
> RTIfedTime const &)" (__imp_??0RTIfedTime@@address@hidden@@Z) referenced in
> function "public: class RTIfedTime __thiscall Country::GetLastTime(void)"
> (address@hidden@@QAE?AVRTIfedTime@@XZ)
> 1>helloWorld.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: __thiscall RTIfedTime::RTIfedTime(class
> RTIfedTime const &)" (__imp_??0RTIfedTime@@address@hidden@@Z)
> 1>Country.obj : error LNK2019: unresolved external symbol
> address@hidden in function "public: void __thiscall
> Country::Update(class
> RTI::AttributeHandleValuePairSet const &)" (address@hidden
> @@address@hidden@@@Z)
> 1>Country.obj : error LNK2019: unresolved external symbol
> address@hidden in function "protected: class
> RTI::AttributeHandleValuePairSet *
> __thiscall Country::CreateNVPSet(void)" (address@hidden
> @@address@hidden@@XZ)
> 1>Country.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static class
> RTI::AttributeHandleValuePairSet * __cdecl
> RTI::AttributeSetFactory::create(unsigned long)"
> (address@hidden@RTI@@address@hidden
> @address@hidden) referenced in function "protected: class
> RTI::AttributeHandleValuePairSet * __thiscall Country::CreateNVPSet(void)"
> (address@hidden@@address@hidden@@XZ)
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::destroyFederationExecution(char const *)"
> (address@hidden@RTI@@address@hidden) referenced
> in function __catch$_main$0
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::resignFederationExecution(enum RTI::ResignAction)"
> (address@hidden@RTI@@address@hidden@@Z)
> referenced in function __catch$_main$0
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::timeAdvanceRequest(class RTI::FedTime const &)"
> (address@hidden@RTI@@address@hidden@@Z)
> referenced in function __catch$_main$0
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::enableAttributeRelevanceAdvisorySwitch(void)"
> (address@hidden@RTI@@QAEXXZ)
> referenced in function __catch$_main$0
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::enableAsynchronousDelivery(void)"
> (address@hidden@RTI@@QAEXXZ) referenced in
> function __catch$_main$0
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::enableTimeRegulation(class RTI::FedTime const &,class
> RTI::FedTime const &)" (address@hidden@RTI@
> @address@hidden@address@hidden) referenced in function __catch$_main$0
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: enum RTI::Boolean __thiscall
> RTI::RTIambassador::tick(double,double)" (address@hidden@RTI@
> @address@hidden@address@hidden) referenced in function __catch$_main$0
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::enableTimeConstrained(void)"
> (address@hidden@RTI@@QAEXXZ) referenced in
> function __catch$_main$0
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: __thiscall
> RTI::RTIambassador::~RTIambassador(void)" (address@hidden
> @@address@hidden) referenced in function __catch$_main$0
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: unsigned long __thiscall
> RTI::RTIambassador::joinFederationExecution(char const *,char const *,class
> RTI::FederateAmbassador *)" (address@hidden
> @RTI@@address@hidden@@Z) referenced in function
> __catch$_main$0
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> RTI::RTIambassador::createFederationExecution(char const *,char const *)"
> (address@hidden@RTI@@address@hidden) referenced
> in function _main
> 1>helloWorld.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: __thiscall
> RTI::RTIambassador::RTIambassador(void)"
> (address@hidden@@address@hidden)
> referenced in function _main
> 1>HwFederateAmbassador.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: __thiscall
> RTI::FederateAmbassador::FederateAmbassador(void)"
> (address@hidden@@address@hidden) referenced in function "public:
> __thiscall HwFederateAmbassador::HwFederateAmbassador(void)"
> (??0HwFederateAmbassador@@address@hidden)
> 1>HwFederateAmbassador.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: virtual __thiscall
> RTI::FederateAmbassador::~FederateAmbassador(void)"
> (address@hidden@@address@hidden) referenced in function "public:
> virtual __thiscall HwFederateAmbassador::~HwFederateAmbassador(void)"
> (??1HwFederateAmbassador@@address@hidden)
> 1>HwFederateAmbassador.obj : error LNK2001: unresolved external symbol
> "public: __thiscall RTI::Exception::Exception(class RTI::Exception const
> &)" (address@hidden@@address@hidden@@Z)
> 1>HwFederateAmbassador.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: virtual __thiscall
> RTI::Exception::~Exception(void)" (address@hidden@@address@hidden)
> referenced in function address@hidden@@address@hidden@Z$0
> 1>HwFederateAmbassador.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
> RTI::Exception::displayMe(void)const " (address@hidden@RTI@
> @address@hidden@address@hidden@@address@hidden@2@@std@@XZ)
> referenced in function "public: __thiscall
> RTI::ObjectNotKnown::ObjectNotKnown(char const *)" (address@hidden
> @@address@hidden@Z)
> 1>HwFederateAmbassador.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: __thiscall RTI::Exception::Exception(char
> const *)" (address@hidden@@address@hidden@Z) referenced in function
> "public: __thiscall RTI::ObjectNotKnown::ObjectNotKnown(char const *)"
> (address@hidden@@address@hidden@Z)
> 1>HwFederateAmbassador.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: __thiscall RTI::Exception::Exception(class
> RTI::Exception const &)" (address@hidden@@address@hidden@@Z) referenced
> in function "public: __thiscall RTI::ObjectNotKnown::ObjectNotKnown(class
> RTI::ObjectNotKnown const &)" (address@hidden@@address@hidden@@Z)
> 1>HwFederateAmbassador.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: static long RTI::ObjectNotKnown::type"
> (address@hidden@RTI@@2JA)
> 1>C:\Users\Reema Chaudhary\documents\visual studio
> 2010\Projects\helloworldtesting\Debug\helloworldtesting.exe : fatal error
> LNK1120: 42 unresolved externals
> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
>


-- 
Muhammad Usman Awais



reply via email to

[Prev in Thread] Current Thread [Next in Thread]