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.54k stars 313 forks source link

Missing header: build error on gcc 10 #166

Closed jmarrec closed 2 years ago

jmarrec commented 2 years ago

Ubuntu 20.04, gcc 10.3

git clone git@github.com:hosseinmoein/DataFrame.git
cd DataFrame
mkdir build && cd build
cmake -G Ninja ..
ninja
[ 20%][1/5] Building CXX object CMakeFiles/DataFrame.dir/src/Utils/DateTime.cc.o
FAILED: CMakeFiles/DataFrame.dir/src/Utils/DateTime.cc.o 
/usr/bin/c++  -I/home/julien/Software/Others/DataFrame/include -std=gnu++17 -MD -MT CMakeFiles/DataFrame.dir/src/Utils/DateTime.cc.o -MF CMakeFiles/DataFrame.dir/src/Utils/DateTime.cc.o.d -o CMakeFiles/DataFrame.dir/src/Utils/DateTime.cc.o -c /home/julien/Software/Others/DataFrame/src/Utils/DateTime.cc
In file included from /home/julien/Software/Others/DataFrame/src/Utils/DateTime.cc:30:
/home/julien/Software/Others/DataFrame/include/DataFrame/Utils/DateTime.h: In member function ‘void hmdf::DateTime::date_to_str(hmdf::DT_FORMAT, T&) const’:
/home/julien/Software/Others/DataFrame/include/DataFrame/Utils/DateTime.h:583:24: error: ‘runtime_error’ is not a member of ‘std’
  583 |             throw std::runtime_error (buffer.c_str ());
      |                        ^~~~~~~~~~~~~
[ 80%][4/5] Building CXX object CMakeF...rame.dir/src/Vectors/HeteroVector.cc.o
ninja: build stopped: subcommand failed.
hosseinmoein commented 2 years ago

Thanks