|
From: Mojca M. <moj...@gm...> - 2015-12-10 09:44:54
|
On 10 December 2015 at 09:40, Jun T. wrote: > On 2015/12/09, at 19:41, Mojca Miklavec wrote: >> qtterminal/qt_conversion.cpp:129:9: error: use of undeclared >> identifier 'isnan'; did you mean 'std::isnan'? >> if (isnan(*image)) >> ^~~~~ >> std::isnan >> >> which I can fix by changing isnan to std::isnan, > > If I set > export CC=clang CXX=clang++ > export CXXFLAGS='-std=c++11 -stdlib=libc++' > then I don't need to modify any source files (OS X 10.8, Qt5). > > Do you get the isnan error even with this CXXFLAGS? Probably not. I also don't get that error if I link against Qt 4. But if I use libc++ (which I might have to do eventually), I also need properly compiled wxWidgets (and hopefully nothing else). So I would like to understand whether I *need to* use libc++ or not. Most probably I will have to, but I'm not yet 100% sure. (Just to make it clear: I'm not trying to solve my own problem. I need to fix this inside a package manage that provides gnuplot, so it has to work for everyone.) The other question is whether adding "std::" prefix would break the functionality for someone else. > BTW, how did you install Qt5? With MacPorts. (And I have no alternative [other than maybe fixing Qt5 in MacPorts] because I'm packaging gnuplot for that.) Mojca |