← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Add missing include in ALE.cpp.

 

Forgot to send to list...

ilmar

Ilmar Wilbers wrote:
cc1plus: warnings being treated as errors
dolfin/swig/dolfin_wrap.cc: In constructor ‘swig::PyObject_ptr::PyObject_ptr(PyObject*, bool)’: dolfin/swig/dolfin_wrap.cc:3265: error: suggest explicit braces to avoid ambiguous ‘else’ dolfin/swig/dolfin_wrap.cc: In destructor ‘swig::PySequence_Cont<T>::~PySequence_Cont()’: dolfin/swig/dolfin_wrap.cc:4704: error: suggest explicit braces to avoid ambiguous ‘else’ mpic++ -o demo/pde/lift-drag/cpp/demo -pthread -Wl,--export-dynamic demo/pde/lift-drag/cpp/main.o -Ldolfin -L/usr/lib/petsc/lib/linux-gnu-c-opt -L/usr/local/lib/linux-gnu-c-opt -L/usr/lib/petsc/lib/linux-gnu-c-opt -L/usr/lib/atlas -L/usr/local/lib -L/usr/lib/atlas -ldolfin -lxml2 -lpetscts -lpetscsnes -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lslepc -lpetscts -lpetscsnes -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lscotch -lscotcherr -lblas -lumfpack -lamd -lgts -lgthread-2.0 -lrt -lgmodule-2.0 -ldl -lglib-2.0 -lml -lifpack -lamesos -laztecoo -lteuchos -lepetra -lepetraext -lgaleri -lblas -llapack
scons: *** [dolfin/swig/dolfin_wrap.os] Error 1
scons: building terminated because of errors.

Adding dolfin_wrap.os

ilmar

kent-and@xxxxxxxxx wrote:
Ilmar, can you send snippets of the wrapper code, it is clearly not the
same as the wrapper code I have.

Kent



mpic++ -o dolfin/swig/dolfin_wrap.os -c -Wall -pipe -ansi -DDEBUG -g
-Werror -DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK
-DPACKAGE_VERSION=\"0.7.3\" -DHAS_PETSC=1 -DHAS_SLEPC=1 -DHAS_SCOTCH=1
-DHAS_UMFPACK=1 -DHAS_GTS=1 -DHAS_TRILINOS=1 -fno-strict-aliasing -fPIC
-I. -I/usr/include/libxml2 -I/usr/lib/petsc/bmake/linux-gnu-c-opt
-I/usr/lib/petsc/include -I/usr/lib/openmpi/include
-I/usr/lib/openmpi/lib -Idolfin -I/usr/local -I/usr/local/include
-I/usr/lib/petsc/bmake/linux-gnu-c-opt -I/usr/lib/petsc/include
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -Idolfin
-I/usr/include/suitesparse -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/local/include
-I/usr/include/python2.5 -I/usr/include/python2.5
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/libxml2 -I/usr/lib/petsc/bmake/linux-gnu-c-opt
-I/usr/lib/petsc/include -I/usr/lib/openmpi/include
-I/usr/lib/openmpi/lib -Idolfin -I/usr/local -I/usr/local/include
-I/usr/lib/petsc/bmake/linux-gnu-c-opt -I/usr/lib/petsc/include
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -Idolfin
-I/usr/include/suitesparse -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/local/include
dolfin/swig/dolfin_wrap.cc
cc1plus: warnings being treated as errors
dolfin/swig/dolfin_wrap.cc: In constructor
‘swig::PyObject_ptr::PyObject_ptr(PyObject*, bool)’:
dolfin/swig/dolfin_wrap.cc:3265: error: suggest explicit braces to avoid
ambiguous ‘else’
dolfin/swig/dolfin_wrap.cc: In destructor
‘swig::PySequence_Cont<T>::~PySequence_Cont()’:
dolfin/swig/dolfin_wrap.cc:4704: error: suggest explicit braces to avoid
ambiguous ‘else’
scons: *** [dolfin/swig/dolfin_wrap.os] Error 1
scons: building terminated because of errors.

ilmar



_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev


References