← Back to team overview

dolfin team mailing list archive

gcc 3.4.3 compile problem

 

I can compile Dolfin 0.5.6 without problem using gcc 3.3.4. However, I had a
problem when compiling /src/kernel/mesh/Tetrahedron.cpp with gcc 3.4.3. The
error is 

./dolfin/Face.h:97: error: `dolfin::PArray<dolfin::Edge*> dolfin::Face::fe' is
private

It compiles without problem if I add

friend class Tetrahedron;

to /src/kernel/mesh/dolfin/Face.h. Below is the full error message.

Garth


g++ -DPACKAGE_NAME=\"dolfin\" -DPACKAGE_TARNAME=\"dolfin\"
-DPACKAGE_VERSION=\"0.5.6\" -DPACKAGE_STRING=\"dolfin\ 0.5.6\"
-DPACKAGE_BUGREPORT=\"dolfin@xxxxxxxxxx\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I.
-I.  -I../../../src/kernel/common -I../../../src/kernel/fem
-I../../../src/kernel/form -I../../../src/kernel/function
-I../../../src/kernel/io -I../../../src/kernel/la -I../../../src/kernel/log
-I../../../src/kernel/main -I../../../src/kernel/math -I../../../src/kernel/mesh
-I../../../src/kernel/ode -I../../../src/kernel/quadrature
-I../../../src/kernel/settings -I../../../src/kernel/common 
-I/usr/local/lib/petsc-2.2.1 -I/usr/local/lib/petsc-2.2.1/bmake/linux-gnu
-I/usr/local/lib/petsc-2.2.1/include -I/usr/local/include -I/usr/include/libxml2
   -DDEBUG=1 -g -O2 -Wall -Werror -ansi -std=c++98  -c Tetrahedron.cpp
Tetrahedron.cpp: In member function `virtual dolfin::uint
dolfin::Tetrahedron::faceAlignment(dolfin::uint) const':
./dolfin/Face.h:97: error: `dolfin::PArray<dolfin::Edge*> dolfin::Face::fe' is
private
Tetrahedron.cpp:125: error: within this context
./dolfin/Face.h:97: error: `dolfin::PArray<dolfin::Edge*> dolfin::Face::fe' is
private
Tetrahedron.cpp:126: error: within this context
make[4]: *** [Tetrahedron.o] Error 1






Follow ups