Hi friends
I have been trying to add a library into my project. My project file looks like this :
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = sdk2
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h \
../../../../../SDKstudy/Runtime5.1/include/fgrab_struct.h \
../../../../../SDKstudy/Runtime5.1/include/fgrab_prototyp.h \
../../../../../SDKstudy/Runtime5.1/include/fgrab_define.h
INCLUDEPATH += $$PWD/../../../../../SDKstudy/Runtime5.1\include
DEPENDPATH += $$PWD/../../../../../SDKstudy/Runtime5.1\include
INCLUDEPATH += C:\Users\Alok\SDKstudy\Runtime5.1\dll\mE4AD1-CL
DEPENDPATH += C:\Users\Alok\SDKstudy\Runtime5.1\dll\mE4AD1-CL
FORMS += mainwindow.ui
LIBS += -L$$PWD/../../../../../SDKstudy/Runtime5.1/lib/visualc2005_amd64/ -lfglib5
INCLUDEPATH += $$PWD/../../../../../SDKstudy/Runtime5.1/lib/visualc2005_amd64
DEPENDPATH += $$PWD/../../../../../SDKstudy/Runtime5.1/lib/visualc2005_amd64
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = sdk2
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h \
../../../../../SDKstudy/Runtime5.1/include/fgrab_struct.h \
../../../../../SDKstudy/Runtime5.1/include/fgrab_prototyp.h \
../../../../../SDKstudy/Runtime5.1/include/fgrab_define.h
INCLUDEPATH += $$PWD/../../../../../SDKstudy/Runtime5.1\include
DEPENDPATH += $$PWD/../../../../../SDKstudy/Runtime5.1\include
INCLUDEPATH += C:\Users\Alok\SDKstudy\Runtime5.1\dll\mE4AD1-CL
DEPENDPATH += C:\Users\Alok\SDKstudy\Runtime5.1\dll\mE4AD1-CL
FORMS += mainwindow.ui
LIBS += -L$$PWD/../../../../../SDKstudy/Runtime5.1/lib/visualc2005_amd64/ -lfglib5
INCLUDEPATH += $$PWD/../../../../../SDKstudy/Runtime5.1/lib/visualc2005_amd64
DEPENDPATH += $$PWD/../../../../../SDKstudy/Runtime5.1/lib/visualc2005_amd64
To copy to clipboard, switch view to plain text mode
When i try to run the code i get the following error
main.obj:-1: error: LNK2019: unresolved external symbol _Fg_Init referenced in function _main
Can you please help me resolve this.
Many thanks
Regards
Alok
Bookmarks