Compiling Mex with GCC on Windows

15 ビュー (過去 30 日間)
Wajahat
Wajahat 2012 年 7 月 13 日
Hi
Any idea how to compile Mex files with GCC on Windows, other than using gnumex?
Best Regards
Wajahat

回答 (2 件)

Ken Atwell
Ken Atwell 2012 年 7 月 16 日
gnumex may be your best bet; compilers that MEX supports does not include gcc on Windows. Just curious -- Is there a particular reason you need gcc? The Windows SDK 7.1 is free (as in beer, at least) and full-featured.
  2 件のコメント
Ken Atwell
Ken Atwell 2012 年 7 月 19 日
Okay, thanks for the clarification.

サインインしてコメントする。


Wajahat
Wajahat 2012 年 7 月 30 日
Solved. Used Gnumex with MinGW, Cygwin was not working with Gnymex, I do not know why. Followed the instructions at Gnumex page, which is simple, just give the path to MinGW compiler root folder etc.
When it creats mexopts.bat, use: mex -f c:\gnumex\mexopts.bat c:\progra~1\MATLAB\R2012a\extern\examples\mex\yprime.c
to compile mex file.

カテゴリ

Find more on MATLAB Compiler SDK in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by