Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Support? #51

Closed
nyckmaia opened this issue Feb 2, 2020 · 2 comments
Closed

Windows Support? #51

nyckmaia opened this issue Feb 2, 2020 · 2 comments

Comments

@nyckmaia
Copy link

nyckmaia commented Feb 2, 2020

Is there a Windows support?
Can I use this library in the Windows 10 x64 environment?

@steven-varga
Copy link
Owner

The library is header only, requiring C++17 and linking against HDF5 CLIB and its dependencies -lhdf5 -lz -ldl -lm -- in other words: no HDF5 C++ or high level API is needed.

Now to answer your question, Chris Drozdowski maintains a branch for VC2017, a Microsoft toolchain, to mitigate the differences between gnu/clang C++lib and ms c++lib. On his github you also find examples tailored to MSVC.
As far as compatibility goes: any recent version of gcc, and clang++-6.0 is known to work, beside Chris's VC2017.

If you want compiler assisted reflection -- because it rocks -- you will need to install clang++-6.0 developer version. Or just use a linux within windows or the other way, and install the provided binaries. Currently I don't maintain a windows binary for h5cpp-compiler.

hope it helps.

@ChrisDrozdowski
Copy link

ChrisDrozdowski commented Feb 2, 2020

Hi,

Please carefully read through the README.md file for the h5cpp-msvc-examples repo particularly which files need to be placed in subfolders.

If you follow what I've written, you shouldn't have difficulties.

As of right now, you'll need to use the MSVC compiler and the VS solution. Clang on Windows relies on the MSVC STL which requires a min Clang version 8.0 which is incompatible with h5cpp. I am struggling with MinGW and haven't gotten around to CMake'ifying my examples.

Otherwise, I have used h5cpp with great success on Windows. Feel free to ask any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants