Linking a winelib application with a windows dll

Thomas Trummer th.trummer at
Sat Aug 22 08:15:22 CDT 2009


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the wine-devel mailing list