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:
Invalid MEX-file '/home/development/itk_matlab/testItkMatlab.mexglx':

Subject: Invalid MEX-file '/home/development/itk_matlab/testItkMatlab.mexglx':

From: Gregthom

Date: 18 Jun, 2009 09:30:03

Message: 1 of 1

Greetings

I have an error message ( title of post) and I can't figure out how to
resolve this.
I wrote a mex based on ITK that compiles fine but I get the error
message when
runing mex file in matlab.

Although I have forced matlab to use libstdc++ from /usr/lib , (by
doing LDPATH_PREFIX="/lib:/usr/lib" in matlb7rc.sh) matlab still seems
to be using libstdc++ from matlab toot's sys/os/glnx86 folder.
Now when I do strings /usr/lib/libstdc++.so.6 | grep GLIBC I get:
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
...

BUT when I do : !strings /opt/matlab/r2007a/bin/glnx86/../../sys/os/
glnx86/libstdc++.so.6 | grep GLIBC

I am getting :
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
...

IT seems to me that there is some version incompatibility with GLIBCXX
support in matlab's libstdc++.so.6

Anyone had simillar experiences ? I am using matlabr2007a and the I
have both gcc/g++-4.3 and gcc/g++-4.1.

Let me know if there are any suggestions on what to do.


Regards


GT

Tags for this Thread

No tags are associated with 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