[Ace-users] [ace-users] ACE 5.3 Linking problem in VS2008
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Fri Feb 8 07:15:11 CST 2008
Hi Nikola,
Thanks very much for your email. Please make sure to send all
questions related to TAO or ACE to the ACE mailing list or ACE+TAO
newsgroup, rather than to me directly.
> I was actually planning to upgrade to ACE 5.5.
ACE 5.5 is also old. I recommend you upgrade to ACE 5.6.2 or contact
one of the companies that provides commercial support for older versions
of ACE.
> First i needed to compile the software on VS2008 (those are the
> requirements i have) and the porting will be done later, when i will
> be sure that there is no problems of porting to this version of VS.
> However i found that the VS6 generates a different name mangling from
> the functions defined in the interfaces. I don't know how is this
> possible. Is it maybe possible that the ACE should be built with
> VS2008 to ensure that the exported symbols will be encoded in the dll
> the same way the compiler forms the name mangling from the ACE
> headers???
You should *definitely* build your software and ACE with the same C++ compiler!
Thank,
Doug
> Any suggestion may help,
> Thanks, Nikola
>
> On Feb 8, 2008 2:01 PM, Douglas C. Schmidt <schmidt at dre.vanderbilt.edu> wrote:
>
> Hi Nikola,
>
> The version of ACE you are using is ANCIENT! Please upgrade to
> ACE+TAO+CIAO x.6.2 (i.e., ACE 5.6.2, TAO 1.6.2, and CIAO 0.6.2), which
> you can download from
>
> http://download.dre.vanderbilt.edu
>
> under the heading: "Latest Beta Kit."
>
> The DOC groups at Washington University, UC Irvine, and Vanderbilt
> University only provide "best effort" support for non-sponsors for the
> latest release, as described in
>
> http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/docs/ACE-bug-process.html
>
> Thus, if you need more "predictable" help for earlier versions of
> ACE+TAO, I recommend that you check out
>
> http://www.dre.vanderbilt.edu/support.html
>
> for a list of companies that will provide you with ACE+TAO commercial
> support.
>
> Thanks,
>
> Doug
>
> >I am porting some components to VS2008 (originally VS6). In VS6 the
> >compiling and building went without any problems. However in VS2008 i
> >have some linking problems (a lot of them):
> >
> >Error 3 error LNK2001: unresolved external symbol
> >"__declspec(dllimport) public: __thiscall
> >ACE_String_Base<char>::~ACE_String_Base<char>(void)" (__imp_??1?
> >$ACE_String_Base at D@@QAE at XZ) ID.obj Data
> >Error 4 error LNK2001: unresolved external symbol
> >"__declspec(dllimport) public: __thiscall
> >ACE_String_Base<char>::~ACE_String_Base<char>(void)" (__imp_??1?
> >$ACE_String_Base at D@@QAE at XZ) StringSet.obj Data
> >Error 5 error LNK2001: unresolved external symbol
> >"__declspec(dllimport) public: __thiscall
> >ACE_String_Base<char>::~ACE_String_Base<char>(void)" (__imp_??1?
> >$ACE_String_Base at D@@QAE at XZ) SystemException.obj Data
> >..................
> >...(and so)...
> >..................
> >I cannot find what the problems are. One of my assumption is maybe
> >that in the ACE interface there are some definitions of type
> > static ssize_t t_rcv (ACE_HANDLE handle,
> > void *buf,
> > size_t len,
> > int *flags,
> > const ACE_Time_Value *timeout = 0);
> >
> >and i have read that the default values of function parameters that
> >are pointers are not allowed in the newer compilers (the one that
> >VS2005 and later has)... However it is only my assumption.
> >
> >Anyone has a solution for this ?!?!?
> >
> >Thank you in advance,
> >Nikola
>
> --
> Dr. Douglas C. Schmidt Professor and Associate Chair
> Electrical Engineering and Computer Science TEL: (615) 343-8197
> Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
> Nashville, TN 37203 NET: d.schmidt at vanderbilt.edu
>
> --
> Nikola Tanev
> Software Team Leader
> _______________________
> EIN-SOF
> www.ein-sof.com
> Tel: +389-2-32-90-590 ext. 34
> GSM: +389-70-383-025
>
More information about the Ace-users
mailing list