Le mardi 02 juillet 2013 à 21:24 -0400, Yaroslav Halchenko a écrit : > Hi Guys, > > unless I am mistaken in the cause here, but psychtoolbox-3 still FTBFS > under unstable+experimental with exactly the same error as before: Even though the error is the same than before, the problem is located in psychtolbox-3, reasons below. > In file included from /usr/include/octave-3.6.4/octave/mexproto.h:52:0, > from /usr/include/octave-3.6.4/octave/mex.h:67, > from Common/Base/PsychIncludes.h:43, > from Common/Base/PsychConstants.h:36, > from Common/Base/Psych.h:34, > from Common/Base/PsychScriptingGlue.cc:101: > /usr/include/c++/4.8/cstdlib: In function 'long long int std::abs(long long int)': The core problem is that Pysch.h includes PsychConstants.h within an "extern C" block. Transitively, mex.h and mexproto.h are also included within this block. But mexproto.h includes <cstdlib> (because we're doing C++), and g++ 4.8 does not like to have a C++ header included within an "extern C" block. The solution is therefore not to include mex.h within an "extern C" block. I let you figure out how to do that best within psychtoolbox-3. Cheers, -- .''`. Sébastien Villemot : :' : Debian Developer `. `' http://www.dynare.org/sebastien `- GPG Key: 4096R/381A7594
Attachment:
signature.asc
Description: This is a digitally signed message part