|
From: Matt E. <men...@me...> - 2006-06-18 14:44:46
|
Thanks for the feedback. Good stuff. Here's what doesn't correlate: When I build a mingw-based executable with a Debian cross compiler, I need a libwsock32.a file available at link time in order to link the executable. Given the text below, I'm not sure exactly what this file is. In any case, we'd like to get this file in dynamic-library flavor. Does this make any sense? If not, what am I missing? -Matt At 6/14/2006 06:17 PM, Brian Dessent wrote: >Matt England wrote: > > > How can one make/acquire both the static- and dynamically-linked flavors of > > winsock (wsock, libwsock32, etc)--the stuff to support windows sockets? > > > > I prefer being able to build the stuff from source. > >Everything you need is in the w32api package. But I don't think you >understand how this works. There is really no such thing as static >linking for win32 API functions. When you use winsock you are calling >into the Windows DLL, e.g. ws2_32.dll. This is microsoft's code, and >you don't get source for it. None of the winsock functionality is >implemented by mingw, in fact there is very little library code at all >in mingw[1]. This is the whole point of why it's "minimal", you're >using the system-provided APIs for everything. w32api is largely just a >set of headers and .def files for creating import libraries, almost zero >actual code. > >Brian > >[1] Mingw provides libmingwex which is mostly a handful of supplimentary >C99 math functions, libmoldname which is just aliases for some function >names, libmingwthrd which contains a few stub functions related to TLS >object deletion when a thread terminates, and that's about it. There's >also the GCC runtims libraries for C++ STL, libgfortran, and libjava, >but those all are built on top of the C runtime. Everything else is >microsoft's code -- MSVCRT and the win32 API. > > >_______________________________________________ >MinGW-users mailing list >Min...@li... > >You may change your MinGW Account Options or unsubscribe at: >https://lists.sourceforge.net/lists/listinfo/mingw-users |