0

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

Fihop
  • 3,127
  • 9
  • 42
  • 65

2 Answers2

1

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
  • 322,767
  • 57
  • 360
  • 340
  • 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 Sep 18 '10 at 11:29
0

A proposed solution for working with MinGW can be found here.

Transparency: the solution was posted by me.

Community
  • 1
  • 1
user1071136
  • 15,636
  • 4
  • 42
  • 61