On Sun, Sep 17, 2006 at 06:27:26PM -0400, Yaroslav Halchenko wrote: > After recent upgrade, mcc (Matlab compiler fails to compile) with next > error messages:
This update changed the default compiler from gcc-3.3 to gcc-4.0. > r14sp3 release of matlab: > -> gcc -O -pthread -o test test_main.o test_mcc_component_data.o > -Wl,-rpath-link,/share/apps/matlab_r14sp3/bin/glnx86 > -L/share/apps/matlab_r14sp3/bin/glnx86 -lmwmclmcrrt -lm -lstdc++ > > /usr/bin/ld: warning: libstdc++.so.5, needed by > /share/apps/matlab_r14sp3/bin/glnx86/libmwmclmcrrt.so, may conflict with > libstdc++.so.6 Read this line carefully. matlab wants libstdc++.so.5, the new binary wants libstdc++.so.6. You have to explicitely use g++-3.3. > 2006b release of matlab: > -> gcc -O -pthread -o test test_main.o test_mcc_component_data.o > -Wl,-rpath-link,/share/apps/matlab_r2006b/bin/glnx86 > -L/share/apps/matlab_r2006b/bin/glnx86 -lmwmclmcrrt -lm -lstdc++ You try to link c++ executables with gcc. This is not supposed to work. Use g++ instead. Nothing here is a bug. Bastian -- Conquest is easy. Control is not. -- Kirk, "Mirror, Mirror", stardate unknown
signature.asc
Description: Digital signature