I installed Matlab on my Windows 7 machine and I also have MSVC 2012 and Cygwin.
I am trying to compile some library using MEX in Cygwin using Makefile, but for some reason, MEX always tries to use Visual C++ 2012
instead of my gcc
.
How can I tell MEX to use gcc
instead?