Menu

HDF5 Libraries

2007-06-03
2012-09-26
  • Nobody/Anonymous

    Hi all
    Does anyone study HDF5 libraries with DEVC++ on windows?
    I could not manage to link to lib files given by HDF group.
    I want to use HDF5 libs with DEVC++ but could not manage.
    Thanks for advance
    Ozgur Beser

     
    • Wayne Keen

      Wayne Keen - 2007-06-03

      Well, a good place to start would be to:

      (1) Tell us exactly what those libraries are for
      (2) Where you got them from (and exactly what you downloaded)
      (3) Post your "Basic 3" for a simple as possible example program.
      (The Basic 3 are covered in the thread (which you should have read
      already) titled "Please Read Before Posting a Question.

      Wayne

       
      • Wayne Keen

        Wayne Keen - 2007-06-03

        It is especially important by the way to start from the beginning,
        and be thorough if you have done a forum search (which you should
        ALWAYS do before asking a question) and found nothing on a topic,
        implying that the chances are pretty good that no one has worked
        with the library that you are interested in.

        The fact that no one has used it is not neccessarily a show stopper,
        but it does imply that you need to provide the basic information
        needed for someone to follow in your footsteps, and help you out
        with pertinent information.

        Wayne

         
    • Nobody/Anonymous

      Hi wayne
      1-HDF5 is an image storing format developed by hdf group and home page is
      http://hdf.ncsa.uiuc.edu/
      2-i have downloaded from http://hdf.ncsa.uiuc.edu/HDF5/release/obtain5.html
      3-

      include <stdlib.h>

      include <hdf5.h>

      int writeUCharData(char fname, char dsetname)
      {

      hid_t fid=-1, dataspace_id=-1, dataset_id=-1;
      hsize_t dims[2];
      hid_t status=-1;

      if(filetype(fname) == SIMPL){
      if((fid = H5Fopen(fname, H5F_ACC_RDWR, H5P_DEFAULT)) < 0)
      fid = H5Fcreate(fname, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
      }
      else
      fid = H5Fcreate(fname, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);

      dataspace_id = H5Screate_simple(2, dims, NULL);

      if(filetype(fname) != SIMPL){
      dataset_id = H5Dcreate(fid, dsetname, H5T_NATIVE_UCHAR, dataspace_id, H5P_DEFAULT);
      }
      else{
      if((dataset_id = H5Dopen(fid, dsetname)) < 0)
      dataset_id = H5Dcreate(fid, dsetname, H5T_NATIVE_UCHAR, dataspace_id, H5P_DEFAULT);
      }

      return status;

      }

       
      • Wayne Keen

        Wayne Keen - 2007-06-04

        Now, I see no MinGW build on the page you referenced.

        Did you assume that this one would work with MinGW?

        Windows
        Compilers: MSVC++ 6.0, .NET 2003

        Assuming that a Visual C++ compiled library will work with the MinGW/GCC
        environment is not a good assumption. Worse than "it never works", sometimes
        it does work, sometimes it doesn't.

        Wayne

        p.s. I did a quick google between things on the honey-do list yesterday
        evening and found some references to having to build this library from
        source using MinGW/MSYS. This may not be a big deal, but I did not have
        a lot of chance to look further.

         
        • giorgio

          giorgio - 2007-11-30

          Hi, I would like to use HDF5 libraries inside the Dev-c++ environment. I think the best will be to compile the source code. Has anyone did that already? Is there any package for hdf5 libraries?

          Thanks,

          Giorgio

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.