Mex problem, how to support c99(matlab)
I'm using windows os. I want to choose some compilers which can support c99 to mex my cpp files. What s开发者_JAVA百科hould I do? I have installed visual c++ in my os, but I guess it does not support c99
Thanks
Zhong
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.
A proposed solution for working with MinGW
can be found here.
Transparency: the solution was posted by me.
精彩评论