Re: HDF5

From: Volker Springel <volker_at_MPA-Garching.MPG.DE>
Date: Mon, 26 Nov 2007 22:16:43 +0100

Seyit Hocuk wrote:
> Hi to the mailing list,
>
> This is my first post here. I want the outputfiles (snapshots) in HDF5
> format so I can use the program VISIT to open them, however simply
> changing the makefile to in clude HDF5 (OPT += -DHAVE_HDF5) does not
> work. I do have (the correct I believe) HDF5 installed and included them
> in the makefile.
>
> HDF5INCL = -I/usr/local/include
> HDF5LIB = -L/usr/local/lib
> The error messages I get when making the makefile are:
>
> io.o(.text+0x8db): In function `write_header_attributes_in_hdf5' :
> : undefined reference to -lots of files here-
> io.o(.text+0x161b): In function `write_file':
> : undefined reference to -lots of files here-
> read_ic.o(.text+0x2e8): In function `read_header_attributes_in_hdf5':
> : undefined reference to -lots of files here-
> read_ic.o(.text+0xf91): In function `read_file':
> : undefined reference to -lots of files here-
>
> I think the solution must be very simple, however I have no clue what it
> is.
>

It looks like you have not specified the actual HDF5 library in the link
step. Try this:

HDF5LIB = -L/usr/local/lib -lhdf5

Volker





> Thanks,
> Seyit
>
>
>
>
> -----------------------------------------------------------
>
> If you wish to unsubscribe from this mailing, send mail to
> minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe gadget-list
> A web-archive of this mailing list is available here:
> http://www.mpa-garching.mpg.de/gadget/gadget-list
Received on 2007-11-26 22:16:28

This archive was generated by hypermail 2.3.0 : 2022-09-01 14:03:42 CEST