[vtkusers] error LNK2019: unresolved external symbol CLSID_WbemLocator

Doug Hoppes dhoppes at mbfbioscience.com
Fri May 17 10:26:49 EDT 2013


Yeah, when I was doing a google search this morning, came across postings saying to include it.  When I added that library to my additional dependencies for the linker, I ended up with the link errors:

LIBCMT.lib(invarg.obj) : error LNK2005: _invalid_parameter_noinfo already defined in msvcrt.lib(MSVCR90.dll)
error LNK2019: unresolved external symbol Direct3DCreate9 referenced in function "public: virtual void __cdecl vtkDirectXGPUInfoList:

So, I was thinking that there was something else that I needed to do.

BTW: Thanks for the assistance.


From: David Cole [mailto:dlrdave at aol.com]
Sent: Friday, May 17, 2013 10:14 AM
To: vtkusers at vtk.org; Doug Hoppes
Subject: Re: [vtkusers] error LNK2019: unresolved external symbol CLSID_WbemLocator

In the top Google hit for CLSID_WbemLocator, there’s this line of code in an example:

# pragma comment(lib, "wbemuuid.lib")
Are you perhaps linking to that library in your Debug build, but not your Release build for some reason?

(i.e. -- do you include a header file that has a line like the above, but in an #ifdef _DEBUG block of code...?)


HTH,
David


From: Doug Hoppes
Sent: ‎Friday‎, ‎May‎ ‎17‎, ‎2013 ‎8‎:‎38‎ ‎AM
To: vtkusers at vtk.org<mailto:vtkusers at vtk.org>

Hi all,

                I’m compiling my VTK application in Visual Studio 2008.  When I try to compile the code in release mode, I get the error: “error LNK2019: unresolved external symbol CLSID_WbemLocator”.  However, everything seems fine in my debug mode.

                Any ideas?

Doug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130517/bcbd4a05/attachment.htm>


More information about the vtkusers mailing list