[vtkusers] error LNK2019: unresolved external symbol CLSID_WbemLocator
Doug Hoppes
dhoppes at mbfbioscience.com
Fri May 17 10:44:01 EDT 2013
Thanks for the info… I’ll pass it on to the developer who compiled our VTK library.
Doug
From: David Cole [mailto:dlrdave at aol.com]
Sent: Friday, May 17, 2013 10:36 AM
To: vtkusers at vtk.org; Doug Hoppes
Subject: Re: [vtkusers] error LNK2019: unresolved external symbol CLSID_WbemLocator
Looks like the CMakeLists file should handle adding the DirectX library, and the wbemuuid library, too.
Do you add any other libraries into the mix in your application that might be confounding this? (Or do you also add the direct X library yourself, and it’s repeated on the link command line...?)
From: Doug Hoppes
Sent: Friday, May 17, 2013 10:26 AM
To: vtkusers at vtk.org<mailto:vtkusers at vtk.org>
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]<mailto:[mailto:dlrdave at aol.com]>
Sent: Friday, May 17, 2013 10:14 AM
To: vtkusers at vtk.org<mailto: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/fb868338/attachment.htm>
More information about the vtkusers
mailing list