hosseinmoein / DataFrame

C++ DataFrame for statistical, Financial, and ML analysis -- in modern C++ using native types and contiguous memory storage
https://hosseinmoein.github.io/DataFrame/
BSD 3-Clause "New" or "Revised" License
2.44k stars 310 forks source link

Errors compiling the HelloWorld example #302

Closed iweave1 closed 4 months ago

iweave1 commented 4 months ago

Hi. I am trying to compile the helloworld example and am getting the following errors that seems to be C++20 changes related: /usr/local/include/DataFrame/Vectors/VectorPtrView.h:345:18: error: explicit specialization in non-namespace scope ‘class hmdf::VectorPtrView<T, A>::iterator’ 345 | template<> | ^ /usr/local/include/DataFrame/Internals/DataFrame_sort.tcc:75:43: error: ‘zip’ is not a member of ‘std::ranges::views’ 75 | auto zip = std::ranges::views::zip(*vec, sorting_idxs); | ^~~ /usr/local/include/DataFrame/Internals/DataFrame_standalone.tcc:954:22: note: candidate expects 3 arguments, 2 provided 954 | std::ranges::fill(done_vec, false); | ~~~^~~~~~~

Would you please help me get past these errors?

hosseinmoein commented 4 months ago

This error means your compiler is not C++23 compliant. DataFrame requires C++23.

iweave1 commented 4 months ago

Thank you. It would have been nice to know this from the project's readme.

hosseinmoein commented 4 months ago

There is a C++23 badge right on the top of readme