adding openmp compiler to matlab 2015b

6 次查看(过去 30 天)
I am trying to compile the multicore version of liblinear, but run into the following error: "MEX cannot find library 'gomp'" which is because the compiler I'm using doesn't support openmp?
how can I add a free compiler on my system (windows 10)?
  2 个评论
Walter Roberson
Walter Roberson 2017-7-3
Which compiler did you install?
https://gcc.gnu.org/onlinedocs/libgomp/
albert tsao
albert tsao 2017-7-3
MinGW64 from here https://www.mathworks.com/matlabcentral/fileexchange/52848-matlab-support-for-mingw-w64-c-c++-compiler

请先登录,再进行评论。

采纳的回答

albert tsao
albert tsao 2017-7-4
编辑:Walter Roberson 2017-8-17
1. Install TDM-GCC independently from http://tdm-gcc.tdragon.net/ (I installed 5.1.0)
2. Link til libgomp.a in that installation when compilling your mex file.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by