<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style><style><!--
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
}
a:link, span.MsoHyperlink {
color:blue;
text-decoration:underline;
}
span.MsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}
span.EmailStyle17 {
font-family:"Calibri","sans-serif";
color:windowtext;
}
.MsoChpDefault {
font-family:"Calibri","sans-serif";
}
div.WordSection1 {
}
--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div>In the top Google hit for CLSID_WbemLocator, there’s this line of code in an example:</div><div><pre># pragma comment(lib, <span style="color: rgb(163, 21, 21);">"wbemuuid.lib"</span>)</pre></div><div>Are you perhaps linking to that library in your Debug build, but not your Release build for some reason?</div><div> </div><div>(i.e. -- do you include a header file that has a line like the above, but in an #ifdef _DEBUG block of code...?)</div><div> </div><div> </div><div>HTH,<br>David</div><div> </div><div data-signatureblock="true"> </div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><font face="Calibri, 'Segoe UI', Meiryo, 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'Khmer UI', 'Nirmala UI', Tunga, 'Lao UI', Ebrima, sans-serif" style='line-height: 15pt; letter-spacing: 0.02em; font-family: Calibri, "Segoe UI", Meiryo, "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "Khmer UI", "Nirmala UI", Tunga, "Lao UI", Ebrima, sans-serif; font-size: 11pt;'><b>From:</b> Doug Hoppes<br><b>Sent:</b> Friday, May 17, 2013 8:38 AM<br><b>To:</b> vtkusers@vtk.org</font></div></div><div> </div>
<div class="WordSection1">
<p class="MsoNormal">Hi all,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> I’m compiling my VTK application in Visual Studio 2008. When I try to compile the code in release mode, I get the error: “<span style='font-family: "Courier New"; font-size: 8pt;'>error LNK2019: unresolved external symbol
CLSID_WbemLocator”. </span>However, everything seems fine in my debug mode.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> Any ideas?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Doug</p>
<p class="MsoNormal"> </p>
</div>
</div></body></html>