billyquith/ponder

Unable to compile under ubuntu 22.04 LTS without two file changes in util.cpp and catch.hpp

HackettJP opened this issue · 0 comments

a few errors whilst trying to compile

  1. error: ‘logic_error’ in namespace ‘std’ does not name a type within util.cpp
  2. 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

0.750000 89 stringy

{"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)