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
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 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

产品


版本

R2009b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by