<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Have you actually tried running the application? Those
warnings are not as dire as they sound. It simply means that you are
referencing these data types in MSIL code, but the data type is only defined in
the native (non-managed) module. This will not prevent the application from
running correctly, but if you want to eliminate the warnings, refer to <a
href="http://msdn.microsoft.com/en-us/library/h8027ys9.aspx">http://msdn.microsoft.com/en-us/library/h8027ys9.aspx</a>.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Steve O.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> omniorb-list-bounces@omniorb-support.com
[mailto:omniorb-list-bounces@omniorb-support.com] <b>On Behalf Of </b>jklein@rockwellcollins.com<br>
<b>Sent:</b> Thursday, April 22, 2010 6:32 PM<br>
<b>To:</b> omniorb-list@omniorb-support.com<br>
<b>Subject:</b> [omniORB] VS 2005 - OmniOrb 4.1.4 Linker Issue<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><br>
<tt><span style='font-size:10.0pt'>Howdy,</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>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.</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>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.</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>I'm assuming this is due to these linker
warnings.</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>Removed.obj : warning LNK4248: unresolved
typeref token (0100001C) for 'CORBA._objref_IDLType'; image may not run</span></tt>
<br>
<tt><span style='font-size:10.0pt'>Removed.obj : warning LNK4248: unresolved
typeref token (01000017) for 'omniIdentity'; image may not run</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>I translate my IDL with the following:</span></tt>
<br>
<br>
<tt><span style='font-size:10.0pt'>omniidl -bcxx -Wba -Wbh=.h -Wbs=.cpp
-Wbd=.cpp</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>PreProcessor flags</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>WIN32;_DEBUG;__WIN32__;__x86__;_WIN32_WINNT=0x0400;__NT__;__OSVERSION__=4;_CRT_SECURE_NO_WARNINGS</span></tt>
<br>
<br>
<tt><span style='font-size:10.0pt'>Or better this:</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>/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"</span></tt>
<br>
<br>
<tt><span style='font-size:10.0pt'>Linked Libs</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>ws2_32.lib mswsock.lib advapi32.lib
omniORB414_rtd.lib omniDynamic414_rtd.lib omnithread34_rtd.lib</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>Or better this:</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>/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</span></tt> <br>
<br>
<br>
<tt><span style='font-size:10.0pt'>I thought about static linking, but that is
not an option with the /clr option.</span></tt> <br>
<br>
<tt><span style='font-size:10.0pt'>I've heard others mention similar things,
but none have been answered. </span></tt><br>
<br>
<tt><span style='font-size:10.0pt'>Thanks.</span></tt><o:p></o:p></p>
</div>
</body>
</html>