Reputation: 127
After putting following in .pro file of qt project (follow some tutorials)
INCLUDEPATH +=/Applications/Matlab/MATLAB_R2016a.app/extern/include
LIBS += -L/Applications/Matlab/MATLAB_R2016a.app/bin/maci64
I try to create engine pointer but my compiler show
:-1: error: symbol(s) not found for architecture x86_64
:-1: error: linker command failed with exit code 1 (use -v to see invocation)
Can any one help me how to solve this problem or how to connect qt with matlab?
Upvotes: 0
Views: 64
Reputation: 65430
You have defined the directory in which to find the necessary shared libraries but you haven't specified the actual libraries using the -l
flag
LIBS += -L/Applications/Matlab/MATLAB_R2016a.app/bin/maci64 -lmx -leng
Upvotes: 1