dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #07802
Re: [HG DOLFIN] Add missing include in ALE.cpp.
I keep getting errors:
mpic++ -o demo/pde/periodic/cpp/main.o -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 -I.
-I. -Idolfin -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 -Idemo -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 -Idemo -I/usr/include/suitesparse
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include
demo/pde/periodic/cpp/main.cpp
cc1plus: warnings being treated as errors
demo/pde/periodic/cpp/main.cpp: In member function ‘virtual bool
main()::DirichletBoundary::inside(const dolfin::real*, bool) const’:
demo/pde/periodic/cpp/main.cpp:42: error: suggest parentheses around &&
within ||
scons: *** [demo/pde/periodic/cpp/main.o] Error 1
scons: building terminated because of errors.
and
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
Martin Sandve Alnæs wrote:
2008/5/6 Garth N. Wells <gnw20@xxxxxxxxx>:
Ilmar Wilbers wrote:
I am using gcc 4.3. Compiled it myself. Still having problems with
includes, see mail from 14.21 yesterday.
I didn't test with Trilinos, but it looks like another case where
string.h needs to be included.
In C++, you're supposed to include <cstring>, not <string.h>. This
goes for all C library includes.
--
Martin
Follow ups
References