lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Patrick mentioned loading kernel32, doesn't ffi do that automatically for
> the ffi.C namespace?

This was just for the sake of an example for a well known library.
Yes, kernel32 is preloaded in the MinGW and MSVC port in the ffi.C
namespace, but not on the Cygwin platform.
This is quite reasonable, as Cygwin is a POSIX platform that just
happens to run on Windows.
The Windows system libraries like kernel32.dll play a similar role in
Cygwin as the Linux kernel on a GNU/Linux system: you normally don't
need to link with them directly, but you can if you really want.