Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
mcc -m Compileing error in Matlab 2012a

Subject: mcc -m Compileing error in Matlab 2012a

From: meng long

Date: 4 Apr, 2012 16:13:11

Message: 1 of 7

Dear,

When I compile "mcc -mv LicenseGroup In Matlab 2012a", Depfun error occurs as follows, It is no problem In Compiling "mcc -mv LicenseGroup In Matlab 2011a".

mcc -mv LicenseGroup;
Compiler version: 4.17 (R2012a)
Processing E:\Program Files\MATLAB\R2012a\toolbox\matlab\mcc.enc
Processing E:\Program Files\MATLAB\R2012a\toolbox\ident\mcc.enc
Processing E:\Program Files\MATLAB\R2012a\toolbox\control\mcc.enc
Processing E:\Program Files\MATLAB\R2012a\toolbox\finance\mcc.enc
Processing E:\Program Files\MATLAB\R2012a\toolbox\stats\mcc.enc
Processing E:\Program Files\MATLAB\R2012a\toolbox\shared\optimlib\mcc.enc
Processing E:\Program Files\MATLAB\R2012a\toolbox\optim\mcc.enc
Processing E:\Program Files\MATLAB\R2012a\toolbox\distcomp\mcc.enc
Depfun error: 'The specified super-class 'frd' contains a parse error or cannot be found on MATLAB's search path, possibly shadowed by another file with the same name.'
Error using mcc
Error executing mcc, return status = 1 (0x1).

need help
thanks

Subject: mcc -m Compileing error in Matlab 2012a

From: ImageAnalyst

Date: 4 Apr, 2012 16:15:22

Message: 2 of 7

Type
which -all frd
on the command line and tell us what it says.

Subject: mcc -m Compileing error in Matlab 2012a

From: meng long

Date: 4 Apr, 2012 19:09:17

Message: 3 of 7

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <2761808d-8615-4076-9334-5acd38d60b9d@n19g2000yqk.googlegroups.com>...
> Type
> which -all frd
> on the command line and tell us what it says.

Thanks, I have a solution by add path of "toolbox" again in Matlab 2012a.

E:\Program Files\MATLAB\R2012a\toolbox\shared\controllib\engine\@frd\frd.m % frd constructor
E:\Program Files\MATLAB\R2012a\toolbox\control\control\@DynamicSystem\frd.m % DynamicSystem method
E:\Program Files\MATLAB\R2012a\toolbox\shared\controllib\engine\@StaticModel\frd.m % StaticModel method

Subject: mcc -m Compileing error in Matlab 2012a

From: ImageAnalyst

Date: 4 Apr, 2012 19:28:02

Message: 4 of 7

Those toolboxes should have already been on the path. Their folders
are added to the path when they are installed so I'm not sure why they
weren't on there for you already. I also don't know what to think
about having three of them. You'd think that since they're all
Mathworks products that they'd cooperate and live happily together.
But it sounds like you got it working, so that's what counts.

Subject: mcc -m Compileing error in Matlab 2012a

From: Steven_Lord

Date: 4 Apr, 2012 20:15:19

Message: 5 of 7



"ImageAnalyst" <imageanalyst@mailinator.com> wrote in message
news:64eed198-f30f-4340-bf03-b1be4b49c01a@s7g2000yqm.googlegroups.com...
> Those toolboxes should have already been on the path.

Agreed.

> Their folders
> are added to the path when they are installed so I'm not sure why they
> weren't on there for you already. I also don't know what to think
> about having three of them. You'd think that since they're all
> Mathworks products that they'd cooperate and live happily together.

Having three instances of frd.m in scope is perfectly fine in this case. The
WHICH call indicated one is the constructor for the frd class and two are
methods of other classes. I assume those method implementations convert
instances of those classes into instances of the frd class. The
documentation calls methods like that, unsurprisingly, conversion or
converter methods.

http://www.mathworks.com/help/techdoc/matlab_oop/br2vkky.html

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: mcc -m Compileing error in Matlab 2012a

From: meng long

Date: 5 Apr, 2012 05:14:13

Message: 6 of 7

,"Steven_Lord" <slord@mathworks.com> wrote in message <jlia4n$75v$1@newscl01ah.mathworks.com>...
>
>
> "ImageAnalyst" <imageanalyst@mailinator.com> wrote in message
> news:64eed198-f30f-4340-bf03-b1be4b49c01a@s7g2000yqm.googlegroups.com...
> > Those toolboxes should have already been on the path.
>
> Agreed.
>
> > Their folders
> > are added to the path when they are installed so I'm not sure why they
> > weren't on there for you already. I also don't know what to think
> > about having three of them. You'd think that since they're all
> > Mathworks products that they'd cooperate and live happily together.
>
> Having three instances of frd.m in scope is perfectly fine in this case. The
> WHICH call indicated one is the constructor for the frd class and two are
> methods of other classes. I assume those method implementations convert
> instances of those classes into instances of the frd class. The
> documentation calls methods like that, unsurprisingly, conversion or
> converter methods.
>
> http://www.mathworks.com/help/techdoc/matlab_oop/br2vkky.html
>
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

Dear Steve Lord:

I code 'pathdef' by myself. Those folders of toolboxes are not completely same between 2012a and 2011a.

When I go on 'mcc -m', I found the result .exe is more larger than in matlab 2011a.
In matlab 2011a, the .exe has size 10M, and in 2012a, the size 17M. Why?

When I go on 'dotnetbuilder', 'Depfun error: Bad allocation' ocurs, which does not ocur
in Matlab 2011a. All codes have no change in Matlab 2012a.

look forward
thanks

Subject: mcc -m Compileing error in Matlab 2012a

From: Steven_Lord

Date: 5 Apr, 2012 13:43:37

Message: 7 of 7



"meng long" <menglong6518@yeah.net> wrote in message
news:jlj9n5$pi8$1@newscl01ah.mathworks.com...
> ,"Steven_Lord" <slord@mathworks.com> wrote in message
> <jlia4n$75v$1@newscl01ah.mathworks.com>...

*snip*

> I code 'pathdef' by myself.

That's not a good idea. If you need to modify your path, use the PATH
function or the path manipulation GUI you can open using the PATHTOOL
command or the Set Path option on the File menu.

> Those folders of toolboxes are not completely same between 2012a and
> 2011a.

And that's not necessarily a problem. There may have been bug fixes or
enhancements made to the files in those folders.

> When I go on 'mcc -m', I found the result .exe is more larger than in
> matlab 2011a.
> In matlab 2011a, the .exe has size 10M, and in 2012a, the size 17M. Why?

If I had to guess, bug fixes or enhancements but I'm not certain.

> When I go on 'dotnetbuilder', 'Depfun error: Bad allocation' ocurs, which
> does not ocur
> in Matlab 2011a. All codes have no change in Matlab 2012a.

I don't know the answers to this question or this problem; please contact
Technical Support and work with them to fix the "depfun error" problem.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us