Re: MEX on linux: Which compiler am I using?



Thanks. That worked. gcc -v shows that I have 4.2.4, but MEX works
with only 4.2.3 (according to this: http://www.mathworks.com/support/compilers/R2010a/glnxa64.html#matlab
..When I went into Synaptic package manager (on Ubuntu) to uninstall
gcc 4.2.4, it selected 4.2.3 and other packages.

Am I to assume that 4.2.3=4.2.4?

Thanks.
On Feb 15, 8:23 am, "Aurelien Queffurust" <tu...@xxxxxxxx> wrote:
P-GPS <premg...@xxxxxxxxx> wrote in message <77fe2cd1-43c8-4e3e-bb8e-a6d2e6ffe...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
Hi,

On Windows/Matlab when I issue "mex -setup", I get a list of compilers
available along with their version numbers.

On Linux/Matlab, when I issue "mex -setup", the only thing related to
compilers I see is asbelow:

---
The options files available for mex are:

  1: /usr/local/MATLAB/R2010a1/bin/gccopts.sh :
      Template Options file for building gcc MEX-files

  2: /usr/local/MATLAB/R2010a1/bin/mexopts.sh :
      Template Options file for building MEX-files via the system ANSI
compiler
 -----

I am using GCC. But how to know which version of GCC?

Thanks.

Just type gcc -v in a terminal
or in MATLAB , type:

!gcc -v

To determine the version of your compiler, see solution:
How can I determine the platform and compiler version that I am using?http://www.mathworks.com/support/solutions/en/data/1-1880F/?solution=...

Aurélien,http://blog.developpez.com/matlab4geek/

.