Why do I get a "could not find MATLAB function" error message when creating a shared library using MATLAB Compiler 4.11 (R2009b)?
9 次查看(过去 30 天)
显示 更早的评论
All the MATLAB functions which are used to create a shared library are in the path below:
C:\matlabFiles\@matlabFiles
I compile the MATLAB files in the path above to create a C++ shared library with the command below:
mcc -W cpplib:libmatrixp -T link:lib addmatrix.m multiplymatrix.m eigmatrix.m -v
Issuing the above command on MATLAB command prompt gives the following error message:
Compiler version: 4.11 (R2009b)
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file mccExcludedFiles.log contains a list of functions excluded from the CTF archive.
2 item(s) added.
Generating MATLAB path for the compiled application...
Created 40 path items.
Begin validation of MEX files: Wed Oct 07 00:26:05 2009
End validation of MEX files: Wed Oct 07 00:26:05 2009
Could not find the MATLAB function 'addmatrix.m' on the MATLAB path.
采纳的回答
MathWorks Support Team
2009-10-7
The error is encountered because of the directory structure in which the MATLAB functions reside. To resolve the issue, copy all the MATLAB functions that need to be compiled to a directory structure that does not have a name starting with the '@' character.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!