← Back to team overview

dolfin team mailing list archive

Re: trying to compile dolfin-0.5.9 using gcc-4.0.1

 

Thanks for pointing this out. I don't know why gcc 3.x does not
complain. I have fixed the problem in the CVS version and updated the
CVS tarball (dolfin-cvs-current.tar.gz) so try that one if you want to
compile with gcc 4.x.

/Anders

On Sat, Sep 24, 2005 at 01:23:10PM -0700, osman buyukisik wrote:
> Hi,
> When I tried to build the 0.5.9 or cvs tar of yesterday, I am getting an error 
> during compilation of ReducedModel.cpp file in ode. I am using gcc-4.0.1 (on 
> Suse linux 9.2)  Seems to work if I revert back to gcc 3.3.4.
>  
> g++ -DPACKAGE_NAME=\"dolfin\" -DPACKAGE_TARNAME=\"dolfin\" 
> -DPACKAGE_VERSION=\"0.5.9\"-DPACKAGE_STRING=\"dolfin\ 0.5.9\" 
> -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/home/osman/petsc-2.3.0 -I/home/osman/petsc-2.3.0/bmake/linux-gnu 
> -I/home/osman/petsc-2.3.0/include -I/home/osman/petsc-2.3.0/include/mpiuni  
> -I/usr/include/libxml2    -DDEBUG=1 -g -O2 -Wall -Werror -ansi -std=c++98 -c 
> ReducedModel.cpp
> ./dolfin/ReducedModel.h:107: error: ???RHS??? has not been declared
> ReducedModel.cpp:128: error: variable or field ???computeAverages??? declared void
> ReducedModel.cpp:128: error: ???int dolfin::ReducedModel::computeAverages??? is 
> not a static member of ???class dolfin::ReducedModel???
> ReducedModel.cpp:128: error: ???RHS??? was not declared in this scope
> ReducedModel.cpp:128: error: expected primary-expression before ???&??? token
> ReducedModel.cpp:128: error: ???u??? was not declared in this scope
> ReducedModel.cpp:129: error: expected primary-expression before ???&??? token
> ReducedModel.cpp:129: error: ???fbar??? was not declared in this scope
> ReducedModel.cpp:129: error: expected primary-expression before ???&??? token
> ReducedModel.cpp:129: error: ???ubar??? was not declared in this scope
> ReducedModel.cpp:129: error: initializer expression list treated as compound 
> expression
> ReducedModel.cpp:130: error: expected ???,??? or ???;??? before ???{??? token
> make[4]: *** [ReducedModel.o] Error 1
> make[4]: Leaving directory `/home/osman/dolfin-0.5.9/src/kernel/ode'
> make[3]: *** [all-recursive] Error 1
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
> 

-- 
Anders Logg
Research Assistant Professor
Toyota Technological Institute at Chicago
http://www.tti-c.org/logg/



References