Closed retsyo closed 2 years ago
Looks like its because MSYS2 started shipping libSDL2.a
as a static library, but the example expected to be linked to a dynamic library. You can try changing linklib 'SDL2'
to linklib 'libSDL2.dll.a'
in the snakesdl.lua
file.
nice, linklib 'libSDL2.dll.a'
fixes the problem. BTW, what if a static link of SDL2
is prefered?
Thanks again
what if a static link of SDL2 is prefered?
Then you have to link many others windows libraries that I don't recall which ones now, to fix the undefined reference
link errors.
Bug description
I have build nelua from latest cloned source in MSYS2+MingW64 on windows 10 64 bits,
and installed SDL2
however, when I try to compile
snakesdl.nelua
which is supplied in your nelua, I getand A clear and concise description of the bug you are experiencing. Tell what you were trying to do and what happened instead.
Code example
Provide minimal reproduction code to test the bug. Please, format the code properly and try to keep it as simple as possible, just focusing on the experienced bug.
Expected behavior
A clear and concise description of what you expected to happen.
Workaround
If you have already found a way to workaround the issue, then please share how you did it, this may help others with the same issue.
Environment
Provide relevant information about your environment:
nelua -v
).