LoginSignup
1
1

More than 5 years have passed since last update.

mex configulation on MacOSX

Last updated at Posted at 2016-05-29

Windowsと違って、MacOSXの場合はmexファイルのコンパイルはデフォルトでそれほど制限はない
(Windowsだと、自由形式のコンパイルがまず通らない。。)
ただ、openmpでハマったのでメモしておく。

結論から言うと、デフォルトのファイルの以下の部分に-liomp5と足せばOK、のはず

LDFLAGS="-liomp5 -Wl,-twolevel_namespace -undefined error -mmacosx-version-min=10.7 -Wl,-syslibroot,$ISYSROOT -bundle $LINKEXPORT"

以下の記事を参考
http://qiita.com/ryo1inagaki/items/ed9b9ae24c8c62eb3b11

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1