|
From: Adam M. <mi...@oc...> - 2016-12-21 22:41:58
|
Hi Zareen, On 12/19/2016 6:08 AM, zareen wrote: > This is OpenDDS version 3.9, released Fri Sep 30 17:48:45 UTC 2016 > > OpenDDS VERSION: 3.9 > > TAO VERSION: 2.2a > > HOST MACHINE and OPERATING SYSTEM: Windows 7 service pack 1 x64 > > COMPILER NAME AND VERSION (AND PATCHLEVEL): Microsoft visual studio > 2010 with clr > > CONTENTS OF $ACE_ROOT/ace/config.h: > > #include"ace/config-win32.h" > > > I am trying to build and run my own application based on OpenDDS. I am > getting a link error in MessageTypeSupport.Obj and myApplication.obj > > DESCRIPTION: > > When i build my application, i get the following error - > > > Error 18 error LNK2028: unresolved token (0A00178F) "private: void > __cdecl > OpenDDS::DCPS::DataReaderImpl::LivelinessTimer::check_liveliness_i(bool,classACE_Time_Value > const &)" > (?check_liveliness_i@LivelinessTimer@DataReaderImpl@DCPS@OpenDDS@@$$FAEAAX_NAEBVACE_Time_Value@@@Z)referenced > in function "public: virtual void __cdecl > OpenDDS::DCPS::DataReaderImpl::LivelinessTimer::CheckLivelinessCommand::execute(void)"(?execute@CheckLivelinessCommand@LivelinessTimer@DataReaderImpl@DCPS@OpenDDS@@$$FUEAAXXZ) > D:\zareen\wrapper_implementation\wrapper_LIB\DDSImpl.obj wrapper_LIB > > This looks like the contents of the Error List view in Visual Studio. That's not as useful for us as the actual Output view that shows the plain text from the compiler/linker. You can just paste in the important parts of that output into your email, or attach it. This particular error says that the a function from OpenDDS_Dcpsd.lib couldn't be found by the linker. If you are linking to that then make sure that all parts of the build (code generators, preprocessor includes, libraries for the linker) are referring to the same DDS_ROOT. > we are referring mnb.ociweb.com/mnb/MiddlewareNewsBrief-201006.html > That article has a lot of useful information in it, but I can't verify that everything still compiles with today's version of OpenDDS. But the OpenDDS source tree contains many examples and tests. Please take a look at how those projects are structured and use that as a template for you own code. Thanks, Adam Mitz Principal Software Engineer Object Computing, Inc. |