lua-users home
lua-l archive

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

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.