我的环境是:win10 64位 matlab2014a 32位 QT5.7 32位
matlab程序为:
function [ C ] = matAdd( A,B)
%UNTITLED 此处显示有关此函数的摘要
% 此处显示详细说明
C = A+B;
end
QT中.pro里的程序为
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = testAdd
TEMPLATE = app
SOURCES += main.cpp\
testadd.cpp
HEADERS += testadd.h
FORMS += testadd.ui
DEFINES += __MW_STDINT_H__
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/include/ -lmatAd
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/include/ -lmatAdd
INCLUDEPATH += $$PWD/include
DEPENDPATH += $$PWD/include
# .h文件搜索路径
INCLUDEPATH += D:/CYMATLAB/matlab2014a1/extern/include
INCLUDEP