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

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

Open
HackettJP opened this issue Nov 30, 2022 · 0 comments

Comments

@HackettJP
Copy link

HackettJP commented Nov 30, 2022

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)

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