Unable to compile under ubuntu 22.04 LTS without two file changes in util.cpp and catch.hpp
HackettJP opened this issue · 0 comments
HackettJP commented
a few errors whilst trying to compile
- error: ‘logic_error’ in namespace ‘std’ does not name a type within util.cpp
- error: call to non-‘constexpr’ function ‘long int sysconf(int)’
1st change
util.cpp add the header
#include < stdexcept > <-- remove the space between stdexcept seems comments remove the text
2nd change
change the line below within catch.hpp (10830)
// static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
static constexpr std::size_t sigStackSize = 32768;
./egtest
Class Vec2D: 2D vector
add: add vector to this and return result
test cases: 4 | 4 passed
assertions: - none -
./pondertest
99.250000
78
yadda
3
6
9
{"float":"99.250000","int":"78","string":"yadda","vector":["3","6","9"]}
{"instance":{"float":"0.750000","int":"89","string":"stringy","vector":[]}}
All tests passed (1767 assertions in 65 test cases)