tags:

views:

26

answers:

1

Hi guys

I'm using windows os. I want to choose some compilers which can support c99 to mex my cpp files. What should I do? I have installed visual c++ in my os, but I guess it does not support c99

Thanks

Zhong

+1  A: 

Well, comparing the list of compilers supported by mex with the list of compilers supporting C99, it looks like the best you can do would probably be Open Watcom or Intel C++, which each have partial support for C99.

If you are able to run on Linux or Mac OS X, you can use GCC, which has better C99 support, but given that you are on Windows, it doesn't appear that Matlab on Windows supports GCC.

Brian Campbell
maybe Cygwin or MinGW32? I'm just guessing here...
merv
You may find it relatively easy to persuade a Windows installation of Matlab to recognise and use GCC. Try executing 'mex -setup' and the script should point you to the compiler configuration scripts it uses.
High Performance Mark

related questions