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:
Compiling MEX file in 64 bit problem!

Subject: Compiling MEX file in 64 bit problem!

From: Bluebird

Date: 23 Aug, 2010 13:39:04

Message: 1 of 3

Hello,

I have a mex file that i used to compile it on the school's 32 bit matlab on linux server, and it used to work fine. Recently, the server is been updated to 64 bit matlab ! I get the follwing error when i try to compile the same file:

Warning: You are using gcc version "4.3.2-1.1)". The earliest gcc version supported
         with mex is "4.1". The latest version tested for use with mex is "4.2".
         To download a different version of gcc, visit http://gcc.gnu.org

/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status


Can you please advise me

Subject: Compiling MEX file in 64 bit problem!

From: Bluebird

Date: 24 Aug, 2010 12:06:05

Message: 2 of 3

Is it something new? Unfortunately I couldn’t find a solution up to this moment.

Subject: Compiling MEX file in 64 bit problem!

From: Cris Luengo

Date: 24 Aug, 2010 13:41:20

Message: 3 of 3

"Bluebird " <wlouis@ryerson.ca> wrote in message <i50cjc$l8s$1@fred.mathworks.com>...
> Is it something new? Unfortunately I couldn’t find a solution up to this moment.

1- Run 'mex -setup' every time you get a new MATLAB version.

2- Talk to your system administrator, show him/her the error message. He/she should be able to install an older version of GCC as per the message.

3- I'm surprised that MATLAB would only support GCC up to 4.2. Maybe you're using an older version of MATLAB?

Cris.

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