mex complilation fails with Redhat 6.5

1 view (last 30 days)
David Lapointe
David Lapointe on 4 Nov 2015
Answered: Walter Roberson on 4 Nov 2015
R2015a/gcc-4.7/cuda-6.5/Redhat-6.5
I have compiled this program (cns is a third party image processing application) on Ubuntu 14.04 with the same versions of the software (R2015a/gcc-4.7/cuda-6.5), but using Redhat(6.5) on our cluster the compile step fails immediately. Is there an issue with using redhat? The first module sets up the paths, the second does the compile.
>> cns_path
>> cns_install
Building with 'g++'.
Error using mex
In file included from /usr/include/stdio.h:929:0,
from /opt/shared/Matlab/R2015a/extern/include/mex.h:154,
from /cluster/tufts/lapointe01/cns/source/common_dec.h:17,
from /cluster/tufts/lapointe01/cns/source/cns_initsynapses.cpp:17:
/usr/include/bits/stdio.h: In function ‘__ssize_t getline(char**, size_t*, FILE*):
/usr/include/bits/stdio.h:118:52: error: ‘__getdelimwas not declared in this scope
Error in cns_install>Compile (line 62)
mex(varargin{:}, '-outdir', outdp, srcfp);
Error in cns_install (line 30)
Compile('private', 'cns_initsynapses');

Answers (1)

Walter Roberson
Walter Roberson on 4 Nov 2015
(I see the same kind of reports against gcc 4.7 as well)

Community Treasure Hunt

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

Start Hunting!