Microsoft KB Archive/138413

PRB: LNK2001 on __imp__ImageList_LoadImageA@28

PSS ID Number: Q138413 Article last modified on 10-23-1995

2.20

WINDOWS NT

= SYMPTOMS =

The linker generates the following error message when building an MFC project or the FIRE sample:

eafxccd.lib(winctrl2.obj):error LNK2001:unresolved external symbol &quot;__imp__ImageList_LoadImageA@28&quot;

= CAUSE =

The linker used an incorrect version of Comctl32.lib. The correct version should have a size of 109,164 bytes and should be found in the ..directory

= RESOLUTION =

The error occurs because there is more than one copy of Comctl32.lib on the hard drive. If you search in the hard drive, you may find copies of the Comctl32.lib library in the following directories with the date and size in bytes as shown.

..\Mstools\Lib\Comctl32.Lib  3/10/95    107,180

..\Msvc20\Lib\Comctl32.Lib   6/8/95     109,164 The correct version is the one in the ..directory. The linker has found the wrong library while searching for Comctl32.lib.

To resolve the error, replace the Comctl32.lib in the .. directory with the one in the ..directory or follow these steps:

  In the Visual Workbench, on the Tools menu, click Options, and then click Directories. Then click Library Files, and check to see if the first entry is: ..   Remove this entry or make this entry the last one.   Build the project. 

= MORE INFORMATION =

To reproduce the problem, copy the Comctl32.lib from the Visual C++ version 2.1 compact disc ..directory and build the FIRE sample.

Additional reference words: 2.2 9.10 COMCTL32.LIB MSTOOLS KBCategory: kbtool kberrmsg kbprb KBSubcategory: VWBIss ============================================================================= Copyright Microsoft Corporation 1995.