Thomas Trummer schrieb:
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:
- 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
- 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
Hi Thomas, You need the Headerfile for your dll. If you got it and put it in the same Folder you can run: winedump spec -I . vendor.dll -I specifies the path where to search for function prototypes, so the spec-file doesnt include only stubs. Stubs are ignored when generating a def file. Of course you also can rewrite the stubs into stdcalls by yourself, but i bet you wont.