On 20/11/13 2:52 PM, Pahal Tahlani wrote:
Thanks a lot for your reply but I am getting the same error on using following code also:

    #include<string>
    #include<cstdlib>

    using namespace std;

    #include"H5File.h"
    #include"H5Exception.h"

    int main(){
            //H5File file(FILE_NAME,H5F_ACC_RDONLY);
            //file.close();

            return 0;
    }


Is that a bug in H5File.h itself....?
My general approach to HDF5 header file is to only include the top level hdf5.h

#include <hdf5.h>

and leave it to the HDF5 developer to order the required headers within hdf5.h

The other thing is that I only specify name space **after** #include for clarity.

Hope that helps in some ways.

Cheers

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

Reply via email to