Hi all, my app uses a third party dll library under win32 with QT 4.1.2 framework, and I "reimp"ed the import lib to a ".a" library file, but linking problem is occured when i finally built the project.
Need your help.
thanks
Hi all, my app uses a third party dll library under win32 with QT 4.1.2 framework, and I "reimp"ed the import lib to a ".a" library file, but linking problem is occured when i finally built the project.
Need your help.
thanks
In your project file (.pro) add this lineOriginally Posted by bruce1007
Qt Code:
LIBS += -L<PATH_WHERE_LIB_IS> -l<libname>To copy to clipboard, switch view to plain text mode
Bye
A camel can go 14 days without drink,
I can't!!!
I have used "LIBS += ..." reference, but the linker reported "undefined reference" error back.
Can you post the linker output?Originally Posted by bruce1007
A camel can go 14 days without drink,
I can't!!!
the linker output like below
debug\form.o(.text+0x1c0): In function `ZN4FormC2EP7QWidget':
D:/project/study/prac/form.cpp:13: undefined reference to `stopMovie(void*
debug\form.o(.text+0x2d4): In function `ZN4FormC1EP7QWidget':
D:/project/study/prac/form.cpp:13: undefined reference to `stopMovie(void*
collect2: ld returned 1 exit status
How does the LIBS line look exactly? Is that a C++ library?
If isn't a C++ library, use this syntaxOriginally Posted by jacek
Qt Code:
extern "C" { #include <libinclude> }To copy to clipboard, switch view to plain text mode
A camel can go 14 days without drink,
I can't!!!
Bookmarks