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
Printable View
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 lineQuote:
Originally Posted by bruce1007
Code:
LIBS += -L<PATH_WHERE_LIB_IS> -l<libname>
Bye
I have used "LIBS += ..." reference, but the linker reported "undefined reference" error back.
Can you post the linker output?Quote:
Originally Posted by bruce1007
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 syntaxQuote:
Originally Posted by jacek
Code:
extern "C" { #include <libinclude> }