[FLASH-USERS] h5_write.c
Nathan Hearn
nhearn at uchicago.edu
Tue Jun 5 09:13:44 CDT 2007
Hi Sergei,
These are very curious errors, as they would suggest that the HDF5
header file is not being included. However, I would have expected the
compile to fail at the line
#include <hdf5.h>
and not get any further. (Also, it is somewhat odd that there seem to
be no errors when the HDF5-related variables are declared, but only
when they are used.)
I would suggest that you inspect the Makefile.h for this build.
(Did you create a new Makefile.h for this machine?) In particular,
make sure that all of the HDF5 settings are correct -- this may simply
involve setting HDF5_PATH to the correct directory, but you will want
to make sure that this is reflected in the CFLAGS_HDF5 and the
LIB_HDF5 statements. Also, if you haven't already, be sure to turn on
all warning messages for your compilers by adding the appropriate
flags to CFLAGS_OPT and FFLAGS_OPT (or, if appropriate, CFLAGS_DEBUG,
CFLAGS_TEST, etc.).
If you are still having problems, could you email the compiler
command that gmake issues for h5_write.c, along with the first few
warning and/or error messages that it generates?
- Nathan
On 6/4/07, ipatov at dtm.ciw.edu <ipatov at dtm.ciw.edu> wrote:
> Dear FLASH users.
> I have succesfully installed and used FLASH2.5 on one computer.
> Recently I made the same instalation [with the same tar files]
> on another computer (of different type), but
> was not able to make test runs on the second computer.
> Now after
> ./setup sedov -auto [same for sod]
> gmake
> I got:
> h5_write.c: in function 'h5_write_tree_info_'
> h5_write.c:1004: 'status' undecleared (first use in this function)
> h5_write.c:1005: 'H5P_DEFAULT' undecleared (first use in this function)
> h5_write.c:1005: 'refine_level' undecleared (first use in this function)
> h5_write.c: At top level:
> h5_write.c: 1897: parse error before '*' token
> h5_write.c: in function 'h5_write_particles_'
> And a great number of similar messages.
> At the end:
> gmake[1]: *** [h5_write.o] Error 1
>
> Then I tried to use hdf5-1.6.4 instead of the previous
> hdf5-1.6.2.tar, but got the same errors.
>
> Does somebody know what must be done to solve the problem?
>
> Best regards
> Sergei
--
Nathan C. Hearn
nhearn at uchicago.edu
ASC Flash Center
Computational Physics Group
University of Chicago
More information about the flash-users
mailing list