Why do I get a "could not find MATLAB function" error message when creating a shared library using MATLAB Compiler 4.11 (R2009b)?

6 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 7 Oct 2009
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.

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products


Release

R2009b

Community Treasure Hunt

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

Start Hunting!