Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!w5g2000prd.googlegroups.com!not-for-mail
From: spasmous <spasmous@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Conflict with mcc... libstdc++.so.6
Date: Sun, 1 Jun 2008 14:22:15 -0700 (PDT)
Organization: http://groups.google.com
Lines: 36
Message-ID: <431d112e-2cfc-4e5e-8b68-e2dcac8b7008@w5g2000prd.googlegroups.com>
NNTP-Posting-Host: 132.239.142.130
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1212355335 28490 127.0.0.1 (1 Jun 2008 21:22:15 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 1 Jun 2008 21:22:15 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: w5g2000prd.googlegroups.com; posting-host=132.239.142.130; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) 
Xref: news.mathworks.com comp.soft-sys.matlab:471669



I have a Hello World program I'm attempting to compile with mcc. It
appears to compile except at the end I get the message:

/usr/bin/ld: warning: libstdc++.so.6, needed by /usr/local/matlab/bin/
glnx86/libmwmclmcrrt.so, may conflict with libstdc++.so.5

Following previous posts on here I've checked the LD_LIBRARY_PATH is
set as in the manual. It is. A binary is generated and can be called,
however the result is errors.

>> system('./hello');
free(): invalid pointer 0x808d0c8!
free(): invalid pointer 0x808d348!
./hello: Segmentation fault

I'm stuck as to what to do now.

-------------------------------------------------------------------------------------
MATLAB Version 7.5.0.338 (R2007b)
MATLAB License Number: xxxxxx
Operating System: Linux 2.6.7-2.2smp #1 SMP Mon Jan 31 17:12:24 CST
2005 i686
Java VM Version: Java 1.6.0 with Sun Microsystems Inc. Java
HotSpot(TM) Client VM mixed mode, sharing
-------------------------------------------------------------------------------------
MATLAB                                                Version
7.5        (R2007b)
Image Processing Toolbox                              Version
6.0        (R2007b)
MATLAB Compiler                                       Version
4.7        (R2007b)
Optimization Toolbox                                  Version
3.1.2      (R2007b)
Signal Processing Toolbox                             Version
6.8        (R2007b)