How to solve LNK2001 errors related to Windows SDK CLSIDs#
User IMFCoder wants to
know
how to solve a LNK2001 error related to CLSID_CMpeg4sDecMediaObject. The
user has no problem linking a lib file in the project but couldn’t find
which lib the CLSID is in.
The Windows
SDK is strangely
cryptic on which lib file the CLSID is exported from. Luckily you can
find out the library file you need to link with, if you execute the
following command
line in the SDK
command prompt.
There is a big uuid.lib file contains most
of the SDK CLSIDs in the Windows SDK, and it is likely linked by default
if you use Visual C++’s project templates, so you may not see the link
error at all if you use common CLSIDs like CLSID_InternetExplorer.