HDF5 C++ with old ABI compatibility

Hello,

I am trying to use the HDF5 C++ with an existing project which is compiled with -D_GLIBCXX_USE_CXX11_ABI=0. First, I built HDF5C++ API and then tried a simple example project where I get a linker error when I set D_GLIBCXX_USE_CXX11_ABI=0.

undefined reference toH5::H5File::H5File(std::string const&, unsigned int, H5::FileCreatPropList const&, H5::FileAccPropList const&)’`

Things work fine when I set D_GLIBCXX_USE_CXX11_ABI=1 in the example project. I guess that HDF5 needs to be built for the older ABI for this to work. If that’s the case, how can I build HDF5 C++ for older ABI?

Regards,
Vismika