Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_findfirst32 problem #2

Open
stuta opened this issue Sep 17, 2017 · 2 comments
Open

_findfirst32 problem #2

stuta opened this issue Sep 17, 2017 · 2 comments

Comments

@stuta
Copy link

stuta commented Sep 17, 2017

Hello

I was able to get this running in windows (wine on osx) byt adding line: lib = ffi.load("msvcrt")

if OS == 'Windows' then
lib = ffi.load("msvcrt")

@spacewander
Copy link
Owner

According to http://luajit.org/ext_ffi_api.html, msvcrt should be part of ffi.C. Maybe it is something difference with WINE in not-Windows platform.

I try to fix it with #3. However, I don't have WINE installed. Could you test the pr for me?

@stuta
Copy link
Author

stuta commented Sep 18, 2017

This problem was in real win7 too. There loading msvcrt was not good, but this works:
lib = ffi.load("msvcr100.dll")

I quess you can load any msvcrXXX.dll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants