Reputation: 879
I am trying to read a .mat file for Qtcreator cpp program. I need to include the mat.h
file. In the .pro file, I add the following paths:
INCLUDEPATH +=/Applications/MATLAB_R2013a.app/extern/include
DEPENDPATH += /Applications/MATLAB_R2013a.app/extern/include
LIBS += /Applications/MATLAB_R2013a.app/extern/include
Then I got an error for :-1: error: can't map file, errno=22 file '/Applications/MATLAB_R2013a.app/extern/include' for architecture x86_64
I already see this post can't map file, errno=22 for architecture x86_64. They say it's because missing a preceding -I
to state that you search in this directory. I do not know how to do this in QtCreator, hope someone could help
Upvotes: 0
Views: 2156
Reputation: 409442
LIBS
should list libraries and not paths, especially not paths to header files.
You get the error because you pass a directory and not a file, directories can't be treated as files everywhere.
Upvotes: 1