Trying to convert matlab code .m to C++, I get the following error :
>> mcc -m carre1.m
Warning: Duplicate directory name: /Applications/MATLAB74/toolbox/
local.
/usr/bin/ld: /Applications/MATLAB74/bin/maci/libmwmclmcrrt.dylib load
command 11 unknown cmd field
collect2: ld returned 1 exit status
mbuild: link of 'carre1' failed.
Error: An error occurred while shelling out to mbuild (error code =
1).
Unable to build executable (specify the -v option for more
information).
??? Error executing mcc, return status = 31.
I'm using Matlab 7.4.0.287 (R2007a) and Mac OS X 10.4 on a Macbook Pro
It seems that the libmwmclmcrrt.dylib library is causing problems ...
Someone has an idea ?
Thanks a lot for replies!
Julien
Subject: Matlab -> C++ Compilation error on MacbookPro
The error is from the OS X Xcode linker and is related to using an older
version of Xcode development tools.
Check that your Xcode version is current. The Product Support page for
R2007a lists Xcode 2.4.1 with gcc/g++ version 4.0.1 (Apple Computer,
Inc. build 5367):
jul2609@hotmail.com wrote:
> Hello
>
> Trying to convert matlab code .m to C++, I get the following error :
>
>>> mcc -m carre1.m
> Warning: Duplicate directory name: /Applications/MATLAB74/toolbox/
> local.
> /usr/bin/ld: /Applications/MATLAB74/bin/maci/libmwmclmcrrt.dylib load
> command 11 unknown cmd field
> collect2: ld returned 1 exit status
>
> mbuild: link of 'carre1' failed.
>
> Error: An error occurred while shelling out to mbuild (error code =
> 1).
> Unable to build executable (specify the -v option for more
> information).
> ??? Error executing mcc, return status = 31.
>
>
> I'm using Matlab 7.4.0.287 (R2007a) and Mac OS X 10.4 on a Macbook Pro
> It seems that the libmwmclmcrrt.dylib library is causing problems ...
> Someone has an idea ?
> Thanks a lot for replies!
>
> Julien
>
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.