https://www.lua.org/home.html
Building the sources is relatively simple, you can download them here:
https://www.lua.org/ftp/lua-5.4.3.tar.gz
Then i followed this video tutorial:
https://www.youtube.com/watch?v=TALXtup2CjI
You only have to change from Dynamic Library to Static Library when you reach that point and compiles fine with Visual Studio 2019.
I ended with a LUA.lib, but when imported from PB:
Code: Select all
Import "LUA.lib"
luaL_newstate()
EndImport
legacy_stdio_definitions.lib
legacy_stdio_wide_specifiers.lib
ucrt.lib
And the lib is imported but every time i use a function like luaL_newstate() i get:
POLINK fatal error corrupt library unable to find symbol luaL_newstate in member lauxlib.obj
There are some old posts about this but none really work, using the mrthod from here by jack
http://forums.purebasic.com/english/vie ... 6&start=15
The lib compiles but shows polink errors just after importing.
Any hints?