I have had more luck with the macports g++ 4.4. I know that llvm/clang cannot compile files using these ParadiseEO headers.
-- Martin Sjölund On 2012-05-11 20:06, Bill Janssen wrote: > I've installed Sundials, built a copy of "cp" which understands the "-u" > flag, but now I'm hitting some weirdness with C++ I don't think I > understand. > > make -C OMOptim/OMOptimBasis/build -f Makefile.unix > make -f Makefile > g++-4.2 -c -pipe -g -gdwarf-2 -w -fPIC -DDEBUG -DQT_XML_LIB -DQT_GUI_LIB > -DQT_CORE_LIB -DQT_SHARED -I../../../../mkspecs/macx-g++42 -I. > -I../../../../lib/QtCore.framework/Versions/4/Headers > -I../../../../include/QtCore > -I../../../../lib/QtGui.framework/Versions/4/Headers > -I../../../../include/QtGui > -I../../../../lib/QtXml.framework/Versions/4/Headers > -I../../../../include/QtXml -I../../../../include > -I../../../../qwt-6.0.1/lib/qwt.framework/Versions/6/Headers -I. -I.. > -I../GUI -I../GUI/Widgets -I../GUI/Tools -I../GUI/Dialogs -I../Units > -I../Tools -I../Infos -I../FileData -I../Problems -I. -I. > -F/local/open-modelica/lib -o MOPlot.o ../GUI/Plots/MOPlot.cpp > In file included from ../GUI/Plots/MOPlot.cpp:41: > ../GUI/Plots/MOPlot.h:76: error: expected ‘,’ or ‘...’ before ‘&’ token > ../GUI/Plots/MOPlot.h:76: error: ISO C++ forbids declaration of > ‘QwtDoublePoint’ with no type > ../GUI/Plots/MOPlot.h:99: error: expected ‘,’ or ‘...’ before ‘&’ token > ../GUI/Plots/MOPlot.h:99: error: ISO C++ forbids declaration of > ‘QwtPlotPrintFilter’ with no type > > This comes from lines like this (MOPlot.h:76): > > inline int getNearestPointIndex(QwtPlotCurve *,const QwtDoublePoint &); > > which apparently isn't valid ISO C++. > > Bill >