Hi! I’m fairly new with HDF5 and I have been testing it and for the life of me I can’t make it work.
I intended to use it with Fortran but, for now, I’ve been testing it with C++.
I created a C++ console application project and tried the create.cpp example of the API. The compiler gives me some simple errors and once I fix them, it says
error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in ConsoleApplication1.obj
Is says too: Mismatch Detected for ‘RuntimeLibrary’ value ‘md_dynamicrelease’ doesn’t match value ‘mdd_dynamicdebug’.
I’ve tried changing the runtime library but all of the four libraries return an error.
I installed HDF5 in a path without spaces, as recommended, and then I followed the instructions in the SING_HDF5_VS.txt file.
In Linker->Input, in additional dependencies, I added the libaries that start with lib, otherwise Visual Studio tells me that some dependencies cannot be resolved.
I am currently using Visual Studio 2017 with Windows 7 64 bits. I tried the same process with Visual Studio 2013 and the same error arise.
Do you guys know what could be the problem?