<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2><U>Background</U></FONT></SPAN></DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial size=2>MSVC7 libraries
compiled with -Zc:wchar_t switch (Treat wchar_t as Built-in Type) are
incompatible with the ones compiled without. This basically changes the
compiler interpretation of wchar_t from unsigned short to a native
wchar_t. </FONT></SPAN><SPAN class=684112315-04062008><FONT face=Arial
size=2> Everything go fine until you link to unicode functions. Since
i</FONT></SPAN><SPAN class=684112315-04062008><FONT face=Arial size=2>t's a
global compile setting, your application cannot mix and
match libraries compiled with different setting : it will give you link
errors.</FONT></SPAN></DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=684112315-04062008><SPAN class=684112315-04062008><FONT
face=Arial size=2>Boost v1.35 library uses the -Zc:wchar_t switch, and
OmniOrb do not use it. </FONT></SPAN></SPAN><SPAN
class=684112315-04062008><SPAN class=684112315-04062008><FONT face=Arial
size=2>Since MSVC8 activates the -Zc:wchar_t switch by default, I feel it
confirms Boost is right. </FONT></SPAN></SPAN><SPAN
class=684112315-04062008><FONT face=Arial size=2>For testing
purposes, I added the switch to current release.
</FONT></SPAN></DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial size=2>Here are the changes
required for omniorb-4.1.2 :</FONT></SPAN></DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2>\mk\platforms\x86_win32_vs_7.mk line 31<BR>Enables "Treat wchar_t as
Built-in Type" (-Zc:wchar_t).</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2>MSVC_DLL_CXXNODEBUGFLAGS = -MD -EHs
-GS -GR -Zi -nologo <U>-Zc:wchar_t<BR></U>MSVC_DLL_CXXLINKNODEBUGOPTIONS =
-nologo
-DEBUG<BR>MSVC_DLL_CNODEBUGFLAGS
= -MD -GS -GR -Zi -nologo
<U>-Zc:wchar_t<BR></U>MSVC_DLL_CLINKNODEBUGOPTIONS = -nologo
-DEBUG<BR>#<BR>MSVC_DLL_CXXDEBUGFLAGS
= -MDd -EHs -RTC1 -GS -GR -Zi -nologo
<U>-Zc:wchar_t<BR></U>MSVC_DLL_CXXLINKDEBUGOPTIONS = -nologo
-DEBUG<BR>MSVC_DLL_CDEBUGFLAGS
= -MDd -RTC1 -GS -GR -Zi -nologo
<U>-Zc:wchar_t<BR></U>MSVC_DLL_CLINKDEBUGOPTIONS =
-nologo -DEBUG<BR>#<BR># Or<BR>#<BR># Use the following set of flags to build
and use multithread static
libraries<BR>#<BR>MSVC_STATICLIB_CXXNODEBUGFLAGS
= -MT -EHs -GS -GR -Zi -nologo<U>
-Zc:wchar_t<BR></U>MSVC_STATICLIB_CXXLINKNODEBUGOPTIONS = -nologo
-DEBUG<BR>MSVC_STATICLIB_CNODEBUGFLAGS
= -MT -GS -GR -Zi -nologo
<U>-Zc:wchar_t<BR></U>MSVC_STATICLIB_CLINKNODEBUGOPTIONS = -nologo
-DEBUG</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2>MSVC_STATICLIB_CXXDEBUGFLAGS
= -MTd -EHs -RTC1 -GS -GR -Zi -nologo
<U>-Zc:wchar_t<BR></U>MSVC_STATICLIB_CXXLINKDEBUGOPTIONS = -nologo
-DEBUG<BR>MSVC_STATICLIB_CDEBUGFLAGS
= -MTd -RTC1 -GS -GR -Zi -nologo
<U>-Zc:wchar_t<BR></U>MSVC_STATICLIB_CLINKDEBUGOPTIONS =
-nologo -DEBUG</FONT></SPAN></DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial size=2>My version compiled
with this change linked and ran fine.</FONT></SPAN></DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial size=2>Feel free to
comment.</FONT></SPAN></DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=684112315-04062008><FONT face=Arial
size=2>David</FONT></SPAN></DIV>
<BR>
______________________________________________________________________<BR>
This email has been scanned by the MessageLabs Email Security System.<BR>
For more information please visit http://www.messagelabs.com/email <BR>
______________________________________________________________________<BR>
</BODY></HTML>