CopernicaMarketingSoftware / PHP-CPP

Library to build PHP extensions with C++
http://www.php-cpp.com/
Apache License 2.0
1.43k stars 333 forks source link

error: expected class-name before '(' token #487

Closed Zarathustra101 closed 12 months ago

Zarathustra101 commented 3 years ago

Got error message, when using library:

error: expected class-name before '(' token
   43 |     Throwable(const std::string &message) : std::runtime_error(message) {}

Solution:

add #include <stdexcept> in include/throwable.h

edhelas commented 2 years ago

So #440 fixes it

carlos-granados commented 1 year ago

There is a maintained fork where a PR to fix this issue has been merged, you can find it here: https://github.com/fast-debug/PHP-CPP

robocoder commented 12 months ago

Fixed in 2.4.0 (c2b36b9843b4b98f67342f6c0a956d1217bcb948)