[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Linking with 3rd party DLLs
From:       Scott W Gifford <gifford () umich ! edu>
Date:       2004-04-30 21:51:18
Message-ID: qszfzal3zjd.fsf () asteroids ! gpcc ! itd ! umich ! edu
[Download RAW message or body]

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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic