[Qt-interest] Linker Error I do not understand

Justus Best just18 at gmx.de
Tue Jun 22 10:27:52 CEST 2010


Hi,

Your pro file looks fine to me, but if I have to fight with such 
problems I would start with the most simple pro file possible so just 
absolut filesystem path, only TEMPLATE = lib and CONFIG += dll and the 
DEFINES you really need. Then compile the lib and check if the fuctions 
get exported. If not the error is in the code, I would look for typos in 
#ifdef's and even try to remove conditional compilation compleatly for 
the moment and just setup the classes for the one case you worry most 
about. If it works then u start adding conditonals again and check if it 
breaks. And maybe check if its a namespace problem, but then they should 
be at least exported.

Hope it helps

Justus
> --->
> TEMPLATE = subdirs
>
> SUBDIRS = src example
> CONFIG += ordered recursive
> <---
>
> -- src.pro ---------------->
> CONFIG += qt
> CONFIG += warn_on
> CONFIG += thread
>
> LIBRARY_NAME = uEyeCamera
> CONFIG(debug, debug|release):win32:LIBRARY_NAME = $$join(LIBRARY_NAME,,,d)
>
> CONFIG += debug
> CONFIG -= release
>
> CONFIG += uEyeCameraDll
>
> COMPILER = msvc
>
> DEFINES += QT_DLL UEYECAMERA_DLL
>
> LIBRARYPATH2 = E:/Daten/Dev/SVN/library/
> INCLUDEPATH += $${LIBRARYPATH2}include/uEye/
>
> TEMPLATE = lib
>
> TARGET = $${LIBRARY_NAME}
>
> CONFIG += dll
>
> DEFINES += UEYECAMERA_MAKEDLL
>
> LIBS += -L$${LIBRARYPATH2}lib/other/uEye -luEye_api
>
> INCLUDEPATH += ../include/
>
> HEADERS += QCameraGlobal.h \
>      QuEyeCamera.h \
>      QRgbMatrix.h \
>      QCameraWidget.h
> SOURCES += QuEyeCamera.cpp \
>      QRgbMatrix.cpp \
>      QCameraWidget.cpp
> <----------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>    



More information about the Qt-interest-old mailing list