Solved LINK 1104 Error
-
I am using QtCreator 4.8.0 to build my project, but i always get " error: LNK1104: cannot open file 'libxl-3.8.2.0\lib\libxl.lib'", I checked the .lib file is not occupied by other programs. And when i use VS2017 to build the same Qt project, it will success. Can anyone support ? Thanks.
-
@lee64456546 How do you build the project in QtCreator? Using qmake?
-
yes, i use qmake to build my project @jsulm
-
@lee64456546 Can you show your pro file?
-
QT += core gui
QT += sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgetsTARGET = Relationships
TEMPLATE = appDEFINES += QT_DEPRECATED_WARNINGS
CONFIG += c++11
INCLUDEPATH +=
libxl-3.8.2.0/include_cppLIBS +=
libxl-3.8.2.0/lib/libxl.lib -
@lee64456546 said in LINK 1104 Error:
libxl-3.8.2.0/lib/libxl.lib
You're using a relative path. You should rather use
LIBS += $$PWD/libxl-3.8.2.0/lib/libxl.lib
Adjust the path above if needed to your directory structure.
-
@jsulm your method works, thanks.