[Trilinos-Users] Fwd: problem with hdf5 in epetra_ext

Kurt Stokbro kurt.stokbro at gmail.com
Mon Jan 21 01:33:12 MST 2008


Thanks for the advice
I found that putting in the flag -Wno-long-long makes the program compile.
Regards,
Kurt


On Jan 17, 2008 12:55 PM, Bartlett, Roscoe A <rabartl at sandia.gov> wrote:
> Kurt,
>
> The type 'long long' is *not* a standard C++98 data type (but, it is
> being added to the next C++ standard).  However, if you turn off g++'s
> strong standard's compliance (consult g++ documentation), this should
> compile.  Note that some MPI implementations (e.g., MPICH I think) and
> the Python SWIG related code also define 'long long' so we have to turn
> off strong ISO C++98 compliance when working with these libraries.
>
> Cheers,
>
> Ross
>
> -----Original Message-----
> From: trilinos-users-bounces at software.sandia.gov
> [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Kurt
> Stokbro
> Sent: Thursday, January 17, 2008 12:28 AM
> To: trilinos-users at software.sandia.gov
> Subject: Re: [Trilinos-Users] Fwd: problem with hdf5 in epetra_ext
>
> Dear All,
> I am still struggling with HDF5, I hope somebody can help me.
>
> I tried to follow the cookbook from Simone for installing HDF5.
> Unfortunately, I still have some problems (now some new problems)
> related to definition of type Long Long in HDF5.
>  I use gnu g++ compiler, any suggestions to what I should do?
>
> g++ -DHAVE_CONFIG_H -I.
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/epetraext/src
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/epetraext/src/block
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/epetraext/src/btf
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/epetraext/src/coloring
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/epetraext/src/distdir
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/epetraext/src/inout
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/epetraext/src/matlab
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/epetraext/src/model_ev
> aluator
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/epetraext/src/transfor
>
> m
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/epetraext/src/zoltan
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/epetra/src
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/teuchos/src
> -I/home/kurt/src/trilinos/trilinos-8.0.4/packages/triutils/src
> -I/usr/local/src/hdf5/hdf5-1.6.6/hdf5/include   -ansi -Wall -ftrapv
> -pedantic -Wconversion -g -O2 -MT EpetraExt_HDF5.o -MD -MP -MF
> .deps/EpetraExt_HDF5.Tpo -c -o EpetraExt_HDF5.o `test -f
> './inout/EpetraExt_HDF5.cpp' || echo './'`./inout/EpetraExt_HDF5.cpp
> /usr/local/src/hdf5/hdf5-1.6.6/hdf5/include/H5public.h:146: error: ISO
> C++ does not support 'long long'
> /usr/local/src/hdf5/hdf5-1.6.6/hdf5/include/H5public.h:147: error: ISO
> C++ does not support 'long long'
>
> Do you have any suggestions what to do?
> Kurt
> - Show quoted text -
>
> On Dec 13, 2007 8:50 PM, Simone Deparis <simone.deparis at epfl.ch> wrote:
> >
> > > I cannot compile the hdf5 library.
> > > I get the following errors:
> > > (...)
> >
> > I have managed to compile it and tried to write a little how-to:
> > http://www.lifev.org/documentation/book/compile-of-hdf5/
> > has you see, I did not have any problem.
> > the important steps are:
> > compile hdf5 with parallel enable and trilinos with:
> >
> > --enable-epetraext-hdf5
> > --with-incdirs=-I/Users/simone/local/opt-mpich-1/hdf5/include
> > --with-ldflags=-L/Users/simone/local/opt-mpich-1/hdf5/lib/
> > --with-libs=-lhdf5
> >
> >
> > _______________________________________________
> >
> > Trilinos-Users mailing list
> > Trilinos-Users at software.sandia.gov
> > http://software.sandia.gov/mailman/listinfo/trilinos-users
> >
> >
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>



More information about the Trilinos-Users mailing list