Linker error 'undefined reference to stat64i32' using precompiled win64-mingw release with w64devkit #5971
Elfen-Code
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I recently ran into a tough linker error when using the precompiled
raylib-6.0_win64_mingw-w64package together withw64devkit:undefined reference to stat64i32This happens because of a mismatch in the Windows C-Runtime (MSVCRT vs UCRT) between the precompiled binary and some local toolchains.
If you face the same issue, you have two clean ways to fix it:
-Wl,--defsym,stat64i32=_stat64to your compiler/linker flags.raylib/src, and runmake PLATFORM=PLATFORM_DESKTOPinside your local w64devkit terminal. Then replace thelibraylib.ain your project/compiler directory with this newly generated file.Hope this saves someone else a long debugging marathon!
All reactions