[SOLVED] Problem creating mex files in Matlab 7.8.0
Posted: 2011/09/02 07:29:36
Hi,
Running Matlab 7.8.0 on CentOS 5.5, I'd like to start mexing .c files. My gcc works fine (version 4.1.2 20080704). I followed the standard instructions:
http://www.mathworks.co.uk/support/tech-notes/1600/1605.html#example1
But I get an error at the Matlab prompt, which may or may not indicate that Matlab is having trouble finding the C compiler:
-------------------------------------------------
>> mex hello.c
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
mex: link of ' "hello.mexglx"' failed.
??? Error using ==> mex at 218
Unable to complete successfully.
-------------------------------------------------
I'm relatively bad with Linux commands, but hopefully there is something that could fix this in one or two specific lines at the CentOS prompt? Thanks for your help.
Cheers,
Mark
Running Matlab 7.8.0 on CentOS 5.5, I'd like to start mexing .c files. My gcc works fine (version 4.1.2 20080704). I followed the standard instructions:
http://www.mathworks.co.uk/support/tech-notes/1600/1605.html#example1
But I get an error at the Matlab prompt, which may or may not indicate that Matlab is having trouble finding the C compiler:
-------------------------------------------------
>> mex hello.c
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
mex: link of ' "hello.mexglx"' failed.
??? Error using ==> mex at 218
Unable to complete successfully.
-------------------------------------------------
I'm relatively bad with Linux commands, but hopefully there is something that could fix this in one or two specific lines at the CentOS prompt? Thanks for your help.
Cheers,
Mark