[FLASH-USERS] compiling issue--error: too few arguments to function ‘H5Dopen2’

Nathan Hearn nhearn at ucar.edu
Fri Feb 6 15:49:05 EST 2009


Hi Ken,

   Is it possible that you are using HDF5 1.8?  Unless it was compiled
with the HDF5 1.6.x compatibility flag, 1.8 changes some of the
function interfaces in incompatible ways.


- Nathan


--
Nathan C. Hearn
nhearn at ucar.edu

Project Scientist
Computational & Information Systems Laboratory
National Center for Atmospheric Research


2009/2/6 Ken Chen <ken at asiaa.sinica.edu.tw>:
> Hi all:
> I am installing the flash code in our machine and got a problem in compiling flash code.
> The compiling seemed to be smooth (for all fortran part ) until meeting  gcc .The error
> is following:
>
> gcc -I/home/ken/flash2/include  -c -O2 -I/usr/include/openmpi/1.2.4-gcc
> -I/usr/include/openmpi/1.2.4-gcc/64  -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8 -DNZB=1 -DN_DIM=2
> io_h5read_bflags.c
> io_h5read_bflags.c: In function 'io_h5read_bflags_':
> io_h5read_bflags.c:76: error: too few arguments to function 'H5Dopen2'
> make: *** [io_h5read_bflags.o] Error 1
>
> At the beginning, I think I may miss some include or lib files.  Then I tried to include
> the possible header files, but I can't still kick out this problem.  Or the problem is
> in HDF5.
> Did I miss some things here? I posted part of Makefile.h and put the ????? in the
> question part.
> It is very appreicated  for any comments.
>
> cheers;
>
> Ken



More information about the flash-users mailing list