Page 1 of 1

lovefs along with Slab

Posted: Tue May 30, 2023 1:59 pm
by mk8
ok so i'm simply trying to use Slab and lovefs together, but on startup it throws this error:

Code: Select all

Error

lovefs.lua:35: attempt to redefine 'WIN32_FIND_DATAW' at line 3


Traceback

[C]: in function 'cdef'
lovefs.lua:35: in main chunk
[C]: in function 'require'
main.lua:4: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
i understand this is because Slab defines parts of this library for itself (i require Slab before lovefs and it doesnt matter, the error gets thrown either way)

how do i resolve this? i'm assuming i just need to comment out some conflicting definitions, however, whatever i try to comment out, there is always an error

UPDATE: i managed to get it to work after about 5 waves of errors. its a total mess, but it works (i think), so no further help needed for now :)

Re: lovefs along with Slab

Posted: Mon Jun 05, 2023 8:29 pm
by Ghosx
hope to see it In the games and creations forum.
good luck :)