I'm working on two apps that link to 3rd party DLLs. For both DLLs, I have a .dll file and a .lib file, but no .def.
For the first app, in order to get things working I had to load all of the functions myself with GetProcAddress. That worked fine, but was tedious to set up. I know there's a better way, but nothing I've tried has worked.
I tried to create a .spec file, compile to a .def file, and link with that.
If I copy ActiveWaveLib.dll to libActiveWaveLib.dll, create an ActiveWaveLib.spec file, compile that with winebuild to libActiveWaveLib.def, then compile with:
wineg++ ... -lActiveWaveLib
it compiles, but when I run it complains:
err:module:import_dll No implementation for ActiveWaveLib.dll.rfCallTags imported from L"Z:\home\gifford\prog\activewave-test\activewave.exe", setting to 0xdeadbeef
If I instead use:
wineg++ ... -iActiveWaveLib
it won't compile:
activewave.o(.text+0xce): In function `main': : warning: undefined reference to `rfRegisterReaderEvent'
Any idea what I'm doing wrong, or what else I can try?
Thanks!
----ScottG.