Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Matlab -> C++ Compilation error on MacbookPro

Subject: Matlab -> C++ Compilation error on MacbookPro

From: jul2609@hotmail.com

Date: 10 Jul, 2007 14:24:05

Message: 1 of 2

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

Subject: Re: Matlab -> C++ Compilation error on MacbookPro

From: Brian Arnold

Date: 11 Jul, 2007 16:15:22

Message: 2 of 2

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
>

Tags for this Thread

Everyone's Tags:

mac

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
mac Steven Lord 11 Jul, 2007 16:50:06
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
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 Disclaimer prior to use.
Related Topics