<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
David Bellette wrote:
<blockquote cite="mid004201c60bb3$7cade320$0d4aa8c0@bellette.net"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2900.2802" name="GENERATOR">
  <style></style>
  <div><font face="Arial" size="2">Hi</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">I've been trying to build 4.0.6 with
VC8 without success.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">I've set the necessary flags:</font></div>
  <div><font face="Arial" size="2">-D_CRT_SECURE_NO_DEPRECATE=1
-D_CRT_NONSTDC_NO_DEPRECATE=1</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">and&nbsp;I've modified line 215 of
CORBA_sysdep.h as per Duncan's previous posting.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">The build seems to be going OK until
I get to the output:</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">making export in src/lib/omniORB...<br>
make[2]: Entering directory
`/cygdrive/m/ThirdParty/OmniOrb4/omniORB-4.0.6/omniORB-4.0.6/src/lib/omn<br>
iORB'<br>
+ mkdir -p omniORB4<br>
/cygdrive/m/ThirdParty/OmniOrb4/omniORB-4.0.6/omniORB-4.0.6/bin/x86_win32/omnipython
../../../bin/sc<br>
ripts/distdate.py &lt;../../../update.log &gt;omniORB4/distdate.hh<br>
../../../bin/x86_win32/oidlwrapper.exe -gnuwin32 -T -bcxx -Wbh=.hh
-Wbs=SK.cc -Wba -p../../../src/li<br>
b/omniORB -Wbdebug -v -ComniORB4 ../../../idl/Naming.idl<br>
PYTHONPATH=(null)<br>
..\..\..\bin\x86_win32\omniidl -T -bcxx -Wbh=.hh -Wbs=SK.cc -Wba
-p..\..\..\src\lib\omniORB -Wbdebug<br>
&nbsp;-v -ComniORB4 ..\..\..\idl\Naming.idl</font></div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Then a runtime exception dialog is
shown with the message:</font></div>
  <div><font face="Arial" size="2">R6034</font></div>
  <div><font face="Arial" size="2">An application has made an attempt
to load the C runtime library incorrectly.</font></div>
  <div><font face="Arial" size="2">Please contact the application's
support team for more information.</font></div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">The output I get once OK is clicked
is:</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">make[2]: *** [omniORB4/Naming.hh]
Error 66<br>
make[2]: Leaving directory
`/cygdrive/m/ThirdParty/OmniOrb4/omniORB-4.0.6/omniORB-4.0.6/src/lib/omni<br>
ORB'<br>
make[1]: *** [export] Error 2<br>
make[1]: Leaving directory
`/cygdrive/m/ThirdParty/OmniOrb4/omniORB-4.0.6/omniORB-4.0.6/src/lib'<br>
make: *** [export] Error 2</font></div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Does anyone have any idea on how to
get around this problem?</font></div>
  <div>&nbsp;</div>
</blockquote>
Applications compiled with VC8 need .manifest files when executed. If
the .manifest file is missing you get runtime error R6034.<br>
<br>
omniidl.exe is compiled in src\tool\omniidl\cxx and then copied to
bin\x86_win32.<br>
<br>
The make scripts of omniORB only copy omniidl.exe but not
omniidl.exe.manifest.<br>
<br>
If you manually copy omniidl.exe.manifest and omnicpp.exe.manifest to
bin\x86_win32 the build should succeed.<br>
<br>
Best regards, Peter.<br>
</body>
</html>