On GitHub's window-latest runner, statically linking the C source below, saved as check.c, with the mingw64 package for svt-av1 fails with the linker error, "check.c:6:(.text.startup+0xa): undefined reference to `svt_av1_get_version'".
MSYS2 was set up in the runner with msys2/setup-msys2@v2 with the update parameter set to true. The versions of the packages installed for gcc, binutils, and svt-av1 were mingw-w64-x86_64-gcc-14.2.0-1, mingw-w64-x86_64-binutils-2.43.1-1, mingw-w64-x86_64-svt-av1-2.3.0-1.
Statically linking with the library satisfies the missing svt_av1_get_version symbol in check.o.
Dynamic linking (dropping -static from command for linking) does work. Statically linking a full application with libSDL2, libSDL2_ttf, libSDL2_image, and all their dependencies, including libSvtAv1Enc, did work before svt-av1 was upgraded to 2.3.0.
Description / Steps to reproduce the issue
On GitHub's window-latest runner, statically linking the C source below, saved as check.c, with the mingw64 package for svt-av1 fails with the linker error, "check.c:6:(.text.startup+0xa): undefined reference to `svt_av1_get_version'".
MSYS2 was set up in the runner with msys2/setup-msys2@v2 with the update parameter set to true. The versions of the packages installed for gcc, binutils, and svt-av1 were mingw-w64-x86_64-gcc-14.2.0-1, mingw-w64-x86_64-binutils-2.43.1-1, mingw-w64-x86_64-svt-av1-2.3.0-1.
The source code was compiled with
The command used for linking was
Expected behavior
Statically linking with the library satisfies the missing svt_av1_get_version symbol in check.o.
Dynamic linking (dropping -static from command for linking) does work. Statically linking a full application with libSDL2, libSDL2_ttf, libSDL2_image, and all their dependencies, including libSvtAv1Enc, did work before svt-av1 was upgraded to 2.3.0.
Actual behavior
gcc -v reported
The messages from linking were
Verification
Windows Version
MINGW64_NT-10.0-20348
MINGW environments affected
Are you willing to submit a PR?
No