I'm having an issue compiling against hdf5 1.8.5 using the Microsoft CL compiler (from Visual Studio 2010 Professional). Specifically some of the hdf5 header files fail to parse. I've used CMake to configure my project and the beginning of the compile line throwing the error is: cl /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR /MT /O2 /Ob2 /D NDEBUG <skip include directives> myfile.cppCL throws the following errors: d:\apps\cygwin\contrib\hdf5-1.8.5-ser\include\H5public.h(148) : error C2146: syntax error : missing ';' before identifier 'haddr_t' d:\apps\cygwin\contrib\hdf5-1.8.5-ser\include\H5public.h(148) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\apps\cygwin\contrib\hdf5-1.8.5-ser\include\H5public.h(148) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\apps\cygwin\contrib\hdf5-1.8.5-ser\include\H5Lpublic.h(78) : error C2146: syntax error : missing ';' before identifier 'corder' d:\apps\cygwin\contrib\hdf5-1.8.5-ser\include\H5Lpublic.h(78) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\apps\cygwin\contrib\hdf5-1.8.5-ser\include\H5Lpublic.h(78) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\apps\cygwin\contrib\hdf5-1.8.5-ser\include\H5Lpublic.h(81) : error C2146: syntax error : missing ';' before identifier 'address' d:\apps\cygwin\contrib\hdf5-1.8.5-ser\include\H5Lpublic.h(81) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\apps\cygwin\contrib\hdf5-1.8.5-ser\include\H5Lpublic.h(81) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int>There are similar errors for H5Opublic.h, H5Apublic.h, H5Dpublic.h, etc.
A search of the archives didn't achieve any hits on this topic. Any comments or suggestions would be appreciated. Thanks, -Dan -- View this message in context: http://hdf-forum.184993.n3.nabble.com/Compile-errors-with-H5public-h-using-Microsoft-CL-compiler-tp1023193p1023193.html Sent from the hdf-forum mailing list archive at Nabble.com. _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
