[fpc-pascal] I am offering a $100 reward for linking static libraries

Henry Vermaak henry.vermaak at gmail.com
Thu Aug 25 12:26:36 CEST 2022


On Thu, 25 Aug 2022 at 04:08, Anthony Walter via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:
> I've written a utility to extract mingw64 static library exports into a searchable database. This allows me to search for possible missing functions (see the screenshot below)
>
> https://cache.getlazarus.org/images/desktop/raylib-static.png

Note for anyone with msys2, you can make a file containing all defined
external symbols like this:

# find /mingw64/lib -name "*.a" -exec nm -pogC --defined-only '{}' \;
2>/dev/null >> symbs.txt

Then search it with grep:

hcv at hcv-l14 MINGW64 ~
# grep -w atexit symbs.txt
C:/msys64/mingw64/lib/libmsvcr120.a:libmsvcr120_defs01591.o:0000000000000000
T atexit
C:/msys64/mingw64/lib/libmsvcr120_app.a:libmsvcr120_app_defs01268.o:0000000000000000
T atexit
C:/msys64/mingw64/lib/libmsvcr120d.a:libmsvcr120d_defs01654.o:0000000000000000
T atexit

hcv at hcv-l14 MINGW64 ~
# grep -w sincos symbs.txt
C:/msys64/mingw64/lib/libmingwex.a:lib64_libmingwex_a-cossin.o:0000000000000000
T sincos

Henry


More information about the fpc-pascal mailing list