_Making_VisiLibity_Work_on_Windows_+_Matlab_ The default compiler in matlab Lcc is a pure c compiler that cannot compile c++ source code. Also, gcc is not officiallly supported by matlab on windows. Syntax errors were encountered when trying to compile with microsoft vc++ compiler which is supported by matlab. Finally, I decided to use gcc instead of msvc. And I found an opensource project gnumex (http://sourceforge.net/projects/gnumex/) that can make matlab support gcc. The solution needs some additional configurations to Matlab and tiny modifications to the mex-prepared C source files. My software environment is Windows XP SP3 + Matlab 7.0.1.24704(R14) SP1. For compiling the VisiLibity library, a Windows version gcc and an extension of gcc support for Matlab are necessary. I use MinGW 5.1.4 (http://www.mingw.org/) and gnumex 2.01. Main steps I took: 1. Compile visilibity.cpp into visilibity.o with gcc gcc -c visilibity.cpp 3. Install MinGW and gnumex, and config the gnumex in Matlab. The detailed configuration instructions can be found here http://gnumex.sourceforge.net/ 4. Compile the four mex-prepared cpp files in matlab's prompt: mex -v xxxx.cpp visilibity.o and get the corresponding dll files 5. Run the demo .m files I suspect the source codes can be compiled by msvc compiler.