Matlab R2013a gcc compilation problem

When trying to compile using gcc 4.4.7 we have the following error:
>>>>> Compiling low-level mex functions ...
>>>>>
2.6.32-131.0.15.el6.x86_64
2.6.32-131.0.15.el6.x86_64
2.6.32-131.0.15.el6.x86_64
2.6.32-131.0.15.el6.x86_64
>>>>>
>>>>> Compiling Boolean set algebra functions (Clipper) ...
>>>>>
2.6.32-131.0.15.el6.x86_64
In file included from /usr/include/stdio.h:929,
from /opt/MATLAB/R2013a/extern/include/mex.h:161,
from poly_boolmex.cpp:32:
/usr/include/bits/stdio.h: In function ?__ssize_t getline(char**, size_t*, FILE*)?:
/usr/include/bits/stdio.h:118: error: ?__getdelim? was not declared in this scope
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/localefwd.h:42,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/string:45,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/stdexcept:39,
from clipper.hpp:38,
from poly_boolmex.cpp:33:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++locale.h: At global scope:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++locale.h:52: error: ?uselocale? was not declared in this scope
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++locale.h:52: error: invalid type in declaration before ?;? token
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++locale.h: In function ?int std::__convert_from_v(__locale_struct* const&, char*, int, const char*, ...)?:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++locale.h:72: error: ?__gnu_cxx::__uselocale? cannot be used as a function
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++locale.h:97: error: ?__gnu_cxx::__uselocale? cannot be used as a function
mex: compile of ' "poly_boolmex.cpp"' failed.
_____
  • -Matlab 2013a
  • Error when we do makemex that failed @ "mex -O poly_boolmex.cpp clipper.cpp"

Réponses (1)

Hana
Hana le 11 Août 2014

0 votes

Due to Below Link there is a compatibility between the Mat lab Version and GCC and Redhat Version
Redhat 6.x Matlab R2013a

Catégories

En savoir plus sur MATLAB Compiler dans Centre d'aide et File Exchange

Tags

Question posée :

le 11 Août 2014

Community Treasure Hunt

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

Start Hunting!

Translated by