c - Old gcc compiler on matlab -
c - Old gcc compiler on matlab -
i using matlab on linux mint. have c programme want used mex command follows:
mex /home/.../binary.c -output binary_m
but next error
warning: using gcc version "4.8.1-10ubuntu9)". version supported mex "4.4.6". list of supported compilers see: http://www.mathworks.com/support/compilers/current_release/ /home/.../binary.c:43:19: fatal error: binary.h: no such file or directory #include "binary.h" ^ compilation terminated. mex: compile of ' "/home/.../binary.c"' failed.
i think have downgrade gcc compiler on matlab don't know how.
any help appreciate it. regards
this has nil warning regarding compiler version; don't pay attending that, fine. might have had problems trying compile c++11
sources, depending on matlab version, compiler version , mex command flags, not case.
here problem: c programme binary.c
contains #include
statement of file binary.h
not found matlab (although trust set in same directory c file?) because directory contains c sources not in matlab path.
to prepare problem, alter directory binary.c
is, , mex file there. can automate process doing like:
source_dir = '/home/.../'; current_dir = fileparts(mfilename('fullpath')); cd source_dir; % cd current_dir;
c matlab gcc mex
Comments
Post a Comment