Creating a Single Import Library for Multiple DLLs (68081)
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) 3.0
- Microsoft Windows Software Development Kit (SDK) 3.1
This article was previously published under Q68081 SUMMARY
A single import library that contains information about multiple
dynamic-link libraries (DLLs) can sometimes be useful. One example in
the Microsoft Windows graphical environment is LIBW.LIB, which serves
as the single import library through which an application can link to
the Windows system DLLs GDI.DLL, KERNEL.DLL, and USER.DLL.
An import library for many DLLs can be created by supplying multiple
module definition (DEF) files as input parameters to the IMPLIB
utility. However, one must make sure that none of the exported
functions is defined in more than one DEF file. IMPLIB issues an error
message when a function name is defined more than once, which occurs
most often with the Windows exit procedure (WEP) because each DLL must
export its own WEP in its DEF file.
To avoid an IMPLIB error indicating that the WEP routine is defined
many times, create modified DEF files that do not contain EXPORT
statements for the WEP routine and specify these files as input to
IMPLIB.
Modification Type: | Major | Last Reviewed: | 5/6/2004 |
---|
Keywords: | kb16bitonly KB68081 kbAudDeveloper |
---|
|