Linking a winelib application with a windows dll
Thomas Trummer
th.trummer at gmail.com
Sat Aug 22 08:15:22 CDT 2009
Hi,
I have a windows dll without source code (vendor.dll) that I want to use in
a winelib application.
There are two problems however:
1) Creating a vendor.def file doesn't work. The resulting file has an empty
EXPORTS section:
winedump spec vendor.dll
winebuild --def -E vendor.spec -o vendor.def
2) According to an older mailing post it should be possbile to use the .def
file to link:
winegcc -o test test.o -lvendor
However, this fails:
/usr/bin/ld: cannot find -lvendor
collect2: ld returned 1 exit status
winegcc: i486-linux-gnu-gcc failed
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20090822/83e1a8e6/attachment.htm>
More information about the wine-devel
mailing list