0
我正在嘗試讀取Qtcreator cpp程序的.mat文件。我需要包含mat.h
文件。在.pro文件,我添加以下路徑:qtCreator錯誤:無法映射文件,errno = 22架構x86_64的文件?
INCLUDEPATH +=/Applications/MATLAB_R2013a.app/extern/include
DEPENDPATH += /Applications/MATLAB_R2013a.app/extern/include
LIBS += /Applications/MATLAB_R2013a.app/extern/include
然後我得到一個錯誤的:-1: error: can't map file, errno=22 file '/Applications/MATLAB_R2013a.app/extern/include' for architecture x86_64
我已經看到這個帖子can't map file, errno=22 for architecture x86_64。他們說這是因爲錯過了前面的-I
來表明你在這個目錄中搜索。我不知道如何在QtCreator做到這一點,希望有人能夠幫助
感謝您的快速回復。所以我需要爲LIBS參數添加一個lib。你能否更詳細地幫我設定LIBS?這裏的路徑'/Applications/MATLAB_R2013a.app/extern/lib/maci64/'中只有3個格式爲.map的地圖文件,在這種情況下,如何設置LIBS? – printemp
@printemp也許你不需要添加一個「lib」文件,也許它是一個僅包含頭文件的庫?我對Matlab及其接口和庫不瞭解。 –
如果我不添加LIBS,它將會有:-1:error:symbol(s)not found for architecture x86_64 error ....無論如何,thx很多。我會努力爭取更多時間......... – printemp