[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [LuaJIT] ffi.load on Cygwin
- From: Patrick Rapin <toupie300@...>
- Date: Sun, 18 Mar 2012 13:53:49 +0100
> 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.