[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: building luasocket on msys/mingw
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Tue, 18 Dec 2007 14:18:08 -0500
Matias Guijarro wrote:
> The first problem I had was to prevent the makefile from building
> "usocket.c", and to use "wsocket.c"
> instead. Is there a compilation flag I missed ? I set
> _WIN32 but it seems it's not enough.
> My second problem comes from my lack of knowledge of msys/mingw and
> Windows : I get a lot of "undefined reference" messages from the
> linker on Windows-specific library calls. Which DLL should I link
> luasocket with ?
You should link with ws2_32.lib/dll. Also you have to export the C
module entry point, so you need to define LUASOCKET_API as
__declspec(dllexport) while building the C files.