add subfolders for mcc

1 view (last 30 days)
12312dsfafasd
12312dsfafasd on 22 Jul 2013
Hello I'm trying to build an excecutable using mcc in Matlab.
The project is spread over 4 folders. These folders contain further subfolders. As I understand the documentation for the mcc function -a adds all files and files in subfolders to the project.
Nevertheless I get Depfun error: 'Undefined function 'sfix' for input arguments of type 'double'.'
as an error.
I have two functions that have 'sfix' as a parameter, it looks like it can't find the function definition. So am I wrong using -a for including subolders and m-files in the subfolder?
Hope someone can help
  3 Comments
12312dsfafasd
12312dsfafasd on 22 Jul 2013
Doesn't matter if the folder is in or not, the same error occurs. sfix is not a function it's a parameter of a function.
It is in folder/subfolder/dec2comp.m
and with the -a option I added only folder.
12312dsfafasd
12312dsfafasd on 22 Jul 2013
I got an other assumption. I guess somewhere there is a function that has a parameter that is set wrong. The project is very huge so there may be dead code that is wrong. In the Matlab environment wehere everything is interpreted at runtime this doesn't matter, since the code is never excecuted.
When it comes to compiling this wrong code comes into the game. Since this error message is related to a very often called function it's hard for me to find the error.
Isn't there an option to get more messages out of the compiler, like in which line of which file this error appears?

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!