| 1 | Import libraries provide the linker with information about functions from a .dll that might be used by a program. If you try to compile some code without a suitable import library, you could have a [Wiki4d:ErrorMessages/LinkerErrors linker error], such as: |
---|
| 2 | {{{ |
---|
| 3 | Error 42: Symbol Undefined _GetWindowInfo@8 |
---|
| 4 | }}} |
---|
| 5 | |
---|
| 6 | Some import libraries are provided with the Digital Mars C++ compiler, but those .lib files have developed a reputation for being out-of-date. |
---|
| 7 | |
---|
| 8 | You might be able to use .lib files from another source, such as: [http://downloads.dsource.org/projects/dwt/dwt-win-importlibs.zip dwt-win-importlibs.zip] (for [/projects/dwt dwt-win], [Ng:digitalmars.D.dwt:933 announcement]) |
---|
| 9 | |
---|
| 10 | Import libraries can be created using [/projects/bindings/wiki/DefFiles .def files]. |