PRB: Unresolved External for IID/CLSID from Internet Client SDK

Last reviewed: March 5, 1998
Article ID: Q182117
The information in this article applies to:
  • Internet Client SDK, versions 4.0, 4.01
  • Microsoft Internet Explorer (Programming), versions 4.0, 4.01
  • Microsoft Visual C++, 32-bit Editions, version 5.0

SYMPTOMS

When creating a Visual C++ application that uses an Internet Client SDK interface identifier (IID) or class ID (CLSID), you may receive an "Unresolved external symbol" error when linking your project.

CAUSE

This error indicates that the linker could not resolve the IID or CLSID you are referencing in your project.

Either the Internet Client SDK include and library paths are not specified as the first paths in the Visual C++ directory lists, or the correct library, which contains the identifiers, is not being linked to your application.

RESOLUTION

Specify the correct locations for the Internet Client SDK include and library files and specify these as the first in the directory lists

If necessary, modify the Project Link settings and add Uuid.lib, which defines the new IIDs and CLSIDs, to the "Library/object modules" section.

STATUS

This behavior is by design.

MORE INFORMATION

Microsoft Visual C++ searches header and library files in the locations specified in the Tools...Options...Directories dialog box. It searches these locations in the order specified in these lists.

The Internet Client SDK provides newer versions of many header and library files that allow you to use new features provided with Microsoft Internet Explorer 4.0. Therefore, you must specify that the Visual C++ build tools search the Internet Client SDK locations before the standard locations to locate these new symbols.

Specify the path to the Internet Client SDK include directory under the "Include files" section and the library directory under the "Library files" section.

REFERENCES

For more information on the Internet Client SDK, please refer to the Help file available at the following URL:

http://www.microsoft.com/msdn/sdk/inetsdk/help/


Additional query words: LNK2001
Keywords : AXSDKMisc kberrmsg kbfaq
Technology : kbInetDev internet ole
Version : WINDOWS:4.0,4.01; WINNT:5.0
Platform : WINDOWS winnt
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.