<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=gb2312">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:ËÎÌå;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"\@ËÎÌå";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:΢ÈíÑźÚ;
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:"\@΢ÈíÑźÚ";
        panose-1:2 11 5 3 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:ËÎÌå;}
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;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin:0cm;
        margin-bottom:.0001pt;
        text-indent:21.0pt;
        font-size:12.0pt;
        font-family:ËÎÌå;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:1371800887;
        mso-list-type:hybrid;
        mso-list-template-ids:2085803166 524298758 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F073;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:33.0pt;
        text-indent:-21.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</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=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>Hi,
ITK¡¯s developers, I am a newbie to the ITK. I have asked the same question
before, but no one answered me. So I post it again, hoping somebody can help me
out. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>I
encountered a common problem. And I first state the context.<o:p></o:p></span></p>
<p class=MsoNormal><b><span lang=EN-US style='font-family:"Times New Roman","serif"'>Environment:<o:p></o:p></span></b></p>
<p class=MsoListParagraph style='margin-left:33.0pt;text-indent:-21.0pt;
mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US
style='font-family:Wingdings'><span style='mso-list:Ignore'>s<span
style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><b><span
lang=EN-US style='font-family:"Times New Roman","serif"'>OS: Windows Vista Home
Premium<o:p></o:p></span></b></p>
<p class=MsoListParagraph style='margin-left:33.0pt;text-indent:-21.0pt;
mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US
style='font-family:Wingdings'><span style='mso-list:Ignore'>s<span
style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><b><span
lang=EN-US style='font-family:"Times New Roman","serif"'>Compiler: Microsoft
Visual Studio 2008 <o:p></o:p></span></b></p>
<p class=MsoListParagraph style='margin-left:33.0pt;text-indent:-21.0pt;
mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US
style='font-family:Wingdings'><span style='mso-list:Ignore'>s<span
style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><b><span
lang=EN-US style='font-family:"Times New Roman","serif"'>ITK Version: 3.16<o:p></o:p></span></b></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>Everything
is fine when compiling and building the ITK. And I install the ITK by building
the INSTALL project. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>Then
I begin to test Examples\Registration\ImageRegistration1.cxx.After adding the
necessary including files, the ImageRegistration1.cxx compiles successfully.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>But
when I run it, it throws following linking errors:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif";
color:red'>itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved symbol <a
href="mailto:_SnmpUtilVarBindFree@4"><span style='color:red'>_SnmpUtilVarBindFree@4</span></a></span><span
style='font-family:"΢ÈíÑźÚ","sans-serif";color:red'>£¬</span><span lang=EN-US
style='font-family:"Times New Roman","serif";color:red'>this symbol is
invoked in method "int __cdecl gdcm::GetMacAddrSys(unsigned char
*)" (<a href="mailto:?GetMacAddrSys@gdcm@@YAHPAE@Z"><span
style='color:red'>?GetMacAddrSys@gdcm@@YAHPAE@Z</span></a>) <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif";
color:red'>Some similar error messages omitted...<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>So
I look up the CMakeLists.txt under Utilities/gdcm/src and I find such codes:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>IF(WIN32)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>
IF(NOT BORLAND)<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:42.0pt'><span lang=EN-US
style='font-family:"Times New Roman","serif"'># rpcrt4 -> UuidCreate<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:42.0pt'><span lang=EN-US
style='font-family:"Times New Roman","serif"'>
TARGET_LINK_LIBRARIES(itkgdcm wsock32 snmpapi rpcrt4)<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:12.0pt'><span lang=EN-US
style='font-family:"Times New Roman","serif"'> ENDIF(NOT BORLAND)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>ENDIF(WIN32)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>It
looks like that the code snippet does not work. So anybody know the reason and
how to fix it? <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>Sorry
for my English.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>Best
Regards.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Times New Roman","serif"'>Hu
Jingfei</span><span lang=EN-US style='font-size:10.5pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</div>
</body>
</html>