On 01/30/2012 08:24 PM, Orion Poplawski wrote:
I am getting the following error building paraview with gcc 4.7:
In file included from
/builddir/build/BUILD/ParaView-3.12.0/Qt/Core/pqAnimationScene.cxx:57:0:
/builddir/build/BUILD/ParaView-3.12.0/Qt/Core/pqServerManagerSelectionModel.h:75:30:
error: calls to overloaded operators cannot appear in a constant-expression
code snippet:
class PQCORE_EXPORT pqServerManagerSelectionModel : public QObject
{
Q_OBJECT
public:
/// Supported selections flags. These are a subset of
/// QItemSelectionModel::SelectionFlags.
enum SelectionFlag {
NoUpdate = QItemSelectionModel::NoUpdate,
Clear = QItemSelectionModel::Clear,
Select = QItemSelectionModel::Select,
Deselect = QItemSelectionModel::Deselect,
ClearAndSelect = Clear | Select
Looks like gcc cannot resolve Clear and Select to a
constant-expression and you'll need to spell out the
scope. Try changing the line above to:
ClearAndSelect = QItemSelectionModel::Clear | QItemSelectionModel::Select
--
Hope this helps,
Kalev