Import Libraries (*.def and *.a) for FBC

Started by Paul Squires, June 29, 2025, 11:36:15 AM

Previous topic - Next topic

Paul Squires

Attached will always be the most currently generated *.def and *.a import library files for the following system DLL's:
- atl
- user32
- propsys
- gdiplus
- shcore
- comctl32

- Ensure that you have the latest Microsoft *.LIB libraries available. These
  are installed as part of the Visual Studio (or Community version) installation.

- Create two subfolders "win32" and "win64" to hold the *.def and *.a files that
  get generated from the batch file.

- Modify the "reimp.bat" batch file to use folder paths specific to your computer. Ensure
  that you use the dlltool exe that ship with your version of the FB compiler in order
  to ensure binary compatibility.

- Ensure that you use the 32 and 64 bit versions of the "reimp" tool which reads
  Microsoft LIB import libraries in order to the create DEF file that is used by
  dlltool to create the *.a library import file.

- The reimp32/64 tool generates multiple def files for the shcore.lib file rather than
  just one combined def. Therefore, for shcore use gendef instead of reimp.

- Some def files need to be manually edited to remove some decorations. These are
  located in the .\manual_edit_def folder. Therefore, do NOT automatically generate
  these defs with the reimp or gendef tools.


Paul Squires
PlanetSquires Software

Paul Squires

Updated with ATL import library (uses manually edited DEF originally generated using gendef).
Paul Squires
PlanetSquires Software

José Roca

#2
Sooner than later the problem will be solved because everybody will end using 64-bit alone. I no longer can find a good reason to use 32-bit.