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

Cannot build with G++ 6.2.0 #2

Open
Salamandar opened this issue Jan 13, 2017 · 0 comments
Open

Cannot build with G++ 6.2.0 #2

Salamandar opened this issue Jan 13, 2017 · 0 comments

Comments

@Salamandar
Copy link

I tried to build on MingW, with g++ 6.2.0. There seems to be a problem with some lambda-functions :

group.cpp: In member function 'std::vector<std::__cxx11::basic_string<char> > elegant::hdf5::Group::keys() const':
group.cpp:89:21: error: cannot convert 'elegant::hdf5::Group::keys() const::<lambda(hid_t, const char*, const H5L_info_t*, void*)>' to 'H5L_iterate_t {aka int (*)(int, const char*, const H5L_info_t*, void*)}' for argument '5' to 'herr_t H5Literate(hid_t, H5_index_t, H5_iter_order_t, hsize_t*, H5L_iterate_t, void*)'
     }, &returnedKeys);
                     ^

I just don't understand why this compiler doesn't accept the "cast" where gcc-4.9 on my raspbian works fine !
I'll try tomorrow gcc-6.2 on ArchLinux, to see if it's the compiler version or MingW.

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

1 participant