MATLAB: Mex cpp file in ubuntu

mex compilerUbuntu

Hi everyone
I'm trying to mex a cpp file in ubuntu using the following command.
mex triLinearVoting.cpp.
It gives me the following error:
Warning: You are using gcc version "4.6.3". The version currently supported with MEX is "4.4.x". For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release/ /usr/local/MATLAB/R2013a/bin/mex: 1: eval: g++: not found mex: compile of ' "triLinearVoting.cpp"' failed.
Thanks,

Best Answer

It appears that you do not have g++ installed, and it appears that your gcc version is newer than mex has been tested with. The newer gcc is a warning that something might go wrong. But you need to install g++ to get any further.