[omniORB] Re: msvc7.1 build error due to recent patch

Luke Deller ldeller at xplantechnology.com
Tue Nov 8 13:03:18 GMT 2005


I attached a batch file "w32build.bat" to my last email, which was
helpfully removed by an email server out of concern for your welfare.  I
shall instead paste the commands I am using to build the sample program
into this email.

The following assumes that %MSVS_BASE%\Vc7\bin\vcvars32.bat has already
been run.  Apologies for the unwanted line wrapping.

set OMNIORB_BASE=...
%OMNIORB_BASE%\bin\x86_win32\omniidl -bcxx *.idl
cl -MD /Fea.exe /D__x86__ /D__NT__ /D__OSVERSION__=4 /D__WIN32__ -I %
OMNIORB_BASE%\include *.cc /link /LIBPATH:%OMNIORB_BASE%\lib\x86_win32
omniDynamic4.lib omniORB4.lib omnithread.lib ws2_32.lib advapi32.lib

Regards,
Luke.

On Tue, 2005-11-08 at 12:21 +1100, Luke Deller wrote:
> Hi,
> 
> I'm getting build errors in my code using vc7.1 and omniORB from the
> omni4_0_develop CVS branch, which are avoided by reversing Tim's patch
> (which is below).  I have attached a small sample program to show the
> error (see attached constbug.idl, main.cc and w32build.bat).
> 
> The problem occurs when implementing an interface which contains a CORBA
> constant.  The linker complains that a symbol for the C++ static class
> member is defined twice: once in the generated skeleton file and once in
> file containing the servant implementation.
> 
> Obviously it's a shame to simply reverse Tim's patch, for the reason he
> raises.  I wonder if there is a better solution.
> 
> Regards,
> Luke.
> 
> On Thu, 2005-05-26 at 08:18 -0500, Tim Theisen wrote:
...

**********************************************************************************************

Important Note
This email (including any attachments) contains information which is
confidential and may be subject to legal privilege.  If you are not
the intended recipient you must not use, distribute or copy this
email.  If you have received this email in error please notify the
sender immediately and delete this email. Any views expressed in this
email are not necessarily the views of XPlan Technology.

It is the duty of the recipient to virus scan and otherwise test the
information provided before loading onto any computer system.
Xplan Technology does not warrant that the
information is free of a virus or any other defect or error.
**********************************************************************************************




More information about the omniORB-list mailing list