building a winelib dll?
wburle4 at gmail.com
Sat Nov 20 10:46:40 CST 2010
alright, so heres how it works:
first, you need to pass spec into the right place, heres the output of the
winegcc -c -mno-cygwin -m32 -o zmq.o zmq.c
winegcc -shared zmq.dll.spec -mno-cygwin -o zmq.dll.so zmq.o -lzmq
next, you need to make sure to include <windows.h> in zmq.c and put WINAPI
between return type and function name if you are using stdcall in the spec
file, otherwise it wont work.
Finally, heres a nice reference example
and in terms of finding what symbols are exported well those in the spec
file are exported, so no big deal.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the wine-devel