LINUX下MATLAB MEX编译的问题 - 悲催的科学匠人 - 冷水's blog

LINUX下MATLAB MEX编译的问题

冷水 posted @ 2013年9月04日 15:35 in linux with tags matlab linux mex , 2655 阅读

虽然linux中gcc编译器的版本已经进化到4.7,但是matlab所依赖的gcc版本还停留在4.4.x。这样导致在较新gcc的平台上编译mex时会出现库版本不匹配的情况。

一个解决方法是安装旧版gcc,且将默认编译器设置为旧版,而后就正常了。

如下是在ubuntu 11.04上的解决

 

sudo apt-get install gcc-4.4  g++4.4 gfortran-4.4
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-4.4 100
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4 100

  

  • 无匹配
  • 无匹配
Avatar_small
Junior Certificate R 说:
2022年9月02日 03:03

Bangladesh Sylhet Division Secondary and Higher Secondary Education Board also successfully completed the Junior School Certificate and Junior Dakhil Certificate of Grade 8th standard annual terminal examination tests on November 2022 at all selected examination centers of the division, according to the reports lacks students have appeared from all districts under the Division and they all are waiting to check JSC Result 2022 Sylhet Board. Department of Secondary Education, Junior Certificate Result Sylhet Board Sylhet Division also conducted an evaluation process to the valuation of subject wise marks through answer sheet correction and the process of evaluation will be complete in before 2nd week of December 2022 and the education board will update answer scripts with student wise mark sheets in subject wise with total GPA grade points to Secondary and Higher Secondary Education Board Bangladesh.

Avatar_small
Alyssa 说:
2023年1月06日 03:41

The problem of MATLAB MEX compilation under LINUX is that the MATLAB MEX compiler is not able to create the MEX file directly. Instead, it generates a C/C++ source file, cbd oil for pain which must then be compiled using a LINUX compiler. This can be a problem if the user does not have a C/C++ compiler installed on their system.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee