You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C library libversion is installed as the following:
C:\Program Files\libversion\lib\libversion.lib - the import library for load-time dynamic linking of the DLL. However, the DLL itself is not installed to the system.
C:\Program Files\libversion\lib\version.lib - the static library.
The pkg-config file C:\Program Files\libversion\lib\pkgconfig\libversion.pc points to the second one (the static library version.lib). But the pkg-config does not contains the compiler option to define the macro LIBVERSION_STATIC_DEFINE which is required for linking with the static library.
Problem description
The C library
libversion
is installed as the following:C:\Program Files\libversion\lib\libversion.lib
- the import library for load-time dynamic linking of the DLL. However, the DLL itself is not installed to the system.C:\Program Files\libversion\lib\version.lib
- the static library.The pkg-config file
C:\Program Files\libversion\lib\pkgconfig\libversion.pc
points to the second one (the static libraryversion.lib
). But the pkg-config does not contains the compiler option to define the macroLIBVERSION_STATIC_DEFINE
which is required for linking with the static library.This causes, in particular, the bug repology/py-libversion#8 (Build errors LNK2001 on Windows).
Steps to reproduce
Build and install the C library
libversion
on Windows:Check that it is discoverable by
pkg-config
:Actual result
Expected result
or
Possible solution 1
Add the definition on the macro
LIBVERSION_STATIC_DEFINE
to the pkg-config file:Possible solution 2
Properly install the DLL and make the pkg-config file point to the import library (
libversion.lib
):The text was updated successfully, but these errors were encountered: