<br><font size=2><tt>Howdy,</tt></font>
<br>
<br><font size=2><tt>I'm trying to build an application that is a mix between
managed and unmanaged C++ with Visual Studio 2005 and omniOrb 4.1.4. This
has been a trying task to say the least. Of course, all the CORBA stuff
is done within non-managed code.</tt></font>
<br>
<br><font size=2><tt>I'm down to a few linker warnings (I only list two
as all the other are duplicates). The application seems to run when I run
it on the machine I compiled it on within visual studio, but when I move
it to another machine, it crashes instantly. I don't even insatiate any
of the non-managed code unless a user clicks a button. Also, I'm moved
all the DLLs to the other machine.</tt></font>
<br>
<br><font size=2><tt>I'm assuming this is due to these linker warnings.</tt></font>
<br>
<br><font size=2><tt>Removed.obj : warning LNK4248: unresolved typeref
token (0100001C) for 'CORBA._objref_IDLType'; image may not run</tt></font>
<br><font size=2><tt>Removed.obj : warning LNK4248: unresolved typeref
token (01000017) for 'omniIdentity'; image may not run</tt></font>
<br>
<br><font size=2><tt>I translate my IDL with the following:</tt></font>
<br>
<br><font size=2><tt>omniidl -bcxx -Wba -Wbh=.h -Wbs=.cpp -Wbd=.cpp</tt></font>
<br>
<br><font size=2><tt>PreProcessor flags</tt></font>
<br>
<br><font size=2><tt>WIN32;_DEBUG;__WIN32__;__x86__;_WIN32_WINNT=0x0400;__NT__;__OSVERSION__=4;_CRT_SECURE_NO_WARNINGS</tt></font>
<br>
<br><font size=2><tt>Or better this:</tt></font>
<br>
<br><font size=2><tt>/Od /I "C:\snapshots\..Removed.." /I "C:\omniorb\omniORB-4.1.4\include\omniORB4"
/I "C:\snapshots\..Removed.." /I "C:\omniorb\omniORB-4.1.4\include"
/D "WIN32" /D "_DEBUG" /D "__WIN32__" /D
"__x86__" /D "_WIN32_WINNT=0x0400" /D "__NT__"
/D "__OSVERSION__=4" /D "_CRT_SECURE_NO_WARNINGS" /D
"_UNICODE" /D "UNICODE" /FD /EHa /MDd /Yu"stdafx.h"
/Fp"Debug\..Removed...pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb"
/W3 /nologo /c /Zi /clr /TP /errorReport:prompt /FU "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll"
/FU "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll"
/FU "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll"
/FU "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll"
/FU "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.XML.dll"</tt></font>
<br>
<br><font size=2><tt>Linked Libs</tt></font>
<br>
<br><font size=2><tt>ws2_32.lib mswsock.lib advapi32.lib omniORB414_rtd.lib
omniDynamic414_rtd.lib omnithread34_rtd.lib</tt></font>
<br>
<br><font size=2><tt>Or better this:</tt></font>
<br>
<br><font size=2><tt>/OUT:"C:\snapshots\..Removed...exe" /INCREMENTAL
/NOLOGO /LIBPATH:"C:\omniOrb\omniORB-4.1.4\lib\x86_win32" /MANIFEST
/MANIFESTFILE:"Debug\..Removed...exe.intermediate.manifest" /DEBUG
/ASSEMBLYDEBUG /PDB:"c:\snapshots\..Removed...pdb" /SUBSYSTEM:WINDOWS
/ENTRY:"main" /MACHINE:X86 /FIXED:No /ERRORREPORT:PROMPT ws2_32.lib
mswsock.lib advapi32.lib omniORB414_rtd.lib omniDynamic414_rtd.lib omnithread34_rtd.lib</tt></font>
<br>
<br>
<br><font size=2><tt>I thought about static linking, but that is not an
option with the /clr option.</tt></font>
<br>
<br><font size=2><tt>I've heard others mention similar things, but none
have been answered. </tt></font>
<br>
<br><font size=2><tt>Thanks.</tt></font>