Category: C programming
-
Getting gcc to work with Matlab in Ubuntu to compile mex files
Matlab R2009b, Lucid Lynx My version of gcc (4.4) is too high for Matlab R2009b (4.1 and 4.2), and Matlab chokes on it. The solution is as follows: Install gcc-4.2: sudo apt-get install gcc-4.2 sudo apt-get install g++-4.2 In matlab, run mex -setup and select the GCC compiler (I believe you will have to have…