|
Hi,
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):
< http://www.mathworks.com/support/tech-notes/1600/1601.html >
Xcode 2.4.1 is the current released Apple development tools version, and
can be downloaded from Apple's web site:
< http://developer.apple.com/tools/download/ >
HTH,
- Brian
Mac Developer
The MathWorks, Inc.
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
>
|