[Qt-interest] Problem with linking external libraries (Win32)
David Ching
dc at remove-this.dcsoft.com
Fri Jan 15 20:02:55 CET 2010
"Markus Straub" <markus.straub.at at gmail.com> wrote in message
news:4B4F2309.20705 at gmail.com...
> In both OSes I copied the shared library to the common path,
> /usr/local/lib and c:\windows\system32 respectively. Compiling and linking
> the same code within QtCreator also works fine on both, even without the
> LIBS directive in the .pro file
> (win32:LIBS += c:\windows\system32\isense.dll). All required headers are
> included as well.
>
Shouldn't you be linking to the import lib from the .dll (i.e. isense.lib)
instead of the .dll?
> The problem arises when running the program: on Windows I only get the
> message "Could not load isense", on Linux it just works.
>
If you are running Windows Vista or later, use the built-in SxSTrace.exe
program to create a log of exactly why the .dll could not be loaded. You
can also use Dependency Walker, but SxSTrace is more thorough.
-- David
More information about the Qt-interest-old
mailing list