问题描述
请,我正在寻找解决此问题的方法 我正在与QT创建者一起使用win64。 这是我的.pro文件: 您只需设置lib路径,还必须指向lib文件: 在Windows上,您也可以设置完整路径(带有文件),但是上述格式应该可以都适用于Unix和Windows。在您的.pro中,您混合使用Unix格式和Windows格式。 参考Qt 。 Please, I'm looking for a solution to this problem I'm working on win64 with QT creator. Here is my .pro file: You're only setting the lib path, you also have to point to the lib file: On Windows you can also just set the full path (with file), but the above format should work both with Unix and Windows. In your .pro you're mixing the Unix format and the Windows format. Cf the Qt documentation. 这篇关于错误:未定义对“ engOpen”的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
erreur:当我尝试为C ++调用mtlb函数时,对'engOpen'的未定义引用
/ p>
TEMPLATE = app
QT + = qml quick
CONFIG + = c ++ 11
资源+ = main.cpp
资源+ = qml.qrc
INCLUDEPATH + = C:\Program Files\MATLAB\R2012a\ \extern\include
LIBS + = -L C:\Program Files\MATLAB\R2012a\bin\win64
#用于解析的其他导入路径Qt Creator的代码模型
中的QML模块QML_IMPORT_PATH =
#部署的默认规则。
include(deployment.pri)
LIBS + = -L C:\Program Files\MATLAB\R2012a\bin\win64
LIBS + = -L< path> -l<没有扩展名的文件>
erreur : undefined reference to 'engOpen'
when I try to call mtlb function for c++ TEMPLATE = app
QT += qml quick
CONFIG += c++11
SOURCES += main.cpp
RESOURCES += qml.qrc
INCLUDEPATH += "C:\Program Files\MATLAB\R2012a\extern\include"
LIBS += -L "C:\Program Files\MATLAB\R2012a\bin\win64"
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Default rules for deployment.
include(deployment.pri)
LIBS += -L "C:\Program Files\MATLAB\R2012a\bin\win64"
LIBS += -L<path> -l<file without extension>