add subfolders for mcc

2 次查看(过去 30 天)
12312dsfafasd
12312dsfafasd 2013-7-22
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 个评论
12312dsfafasd
12312dsfafasd 2013-7-22
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 2013-7-22
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?

请先登录,再进行评论。

回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by