Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!l17g2000pri.googlegroups.com!not-for-mail
From: spasmous <spasmous@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Conflict with mcc... libstdc++.so.6
Date: Mon, 2 Jun 2008 10:03:33 -0700 (PDT)
Organization: http://groups.google.com
Lines: 44
Message-ID: <b186357c-fe52-44e8-9f8d-f049a00a4058@l17g2000pri.googlegroups.com>
References: <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: quoted-printable
X-Trace: posting.google.com 1212426213 1689 127.0.0.1 (2 Jun 2008 17:03:33 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 2 Jun 2008 17:03:33 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: l17g2000pri.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) 
Bytes: 3038
Xref: news.mathworks.com comp.soft-sys.matlab:471817



On Jun 2, 5:00=A0am, "Sebastiaan "
<s.breedv...@erasmusmc.REMOVE.BOO.BOO.nl> wrote:
> spasmous<spasm...@gmail.com> wrote in message
>
> <431d112e-2cfc-4e5e-8b68-e2dcac8b7...@w5g2000prd.googlegroups.com>...> I h=
ave 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
>
> Probably your system uses so.5 while Matlab comes with .so.6.
>
> Did you compile with -L/opt/matlab/2007b/sys/os/glnxa64/
> -lstdc++ =A0? What does 'ldd hello' give? And when executed
> from Matlab (system('ldd hello'))?
>

Sebastian - by responding you are saving my life :) Thank you!
The result of ldd hello is:

        linux-gate.so.1 =3D>  (0xffffe000)
        libmwmclmcrrt.so =3D> /usr/local/matlab/bin/glnx86/
libmwmclmcrrt.so (0x40001000)
        libm.so.6 =3D> /lib/tls/libm.so.6 (0x42e08000)
        libstdc++.so.5 =3D> /usr/lib/libstdc++.so.5 (0x439b9000)
        libpthread.so.0 =3D> /lib/tls/libpthread.so.0 (0x42f20000)
        libc.so.6 =3D> /lib/tls/libc.so.6 (0x42cea000)
        libdl.so.2 =3D> /lib/libdl.so.2 (0x42e2d000)
        libstdc++.so.6 =3D> /usr/local/matlab/bin/glnx86/../../sys/os/
glnx86/libstdc++.so.6 (0x40069000)
        libgcc_s.so.1 =3D> /usr/local/matlab/bin/glnx86/../../sys/os/
glnx86/libgcc_s.so.1 (0x40146000)
        /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x42cd1000)

So it looks like my platform uses libstdc++.so.5. Is there any
solution where I can tell MATLAB to use .so.6?

I'm not sure I understand what you meant by compiling with -L/opt/
matlab/2007b/sys/os/glnxa64/-lstdc++. There is not -L flag with mcc
that I can see.