View Single Post
Old 01-07-2021, 08:53 PM   #53
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,937
Karma: 6361444
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by wrCisco View Post
A heads up on the more recent version of the Sigil fork for the gumbo query integration (https://github.com/kevinhendricks/Sigil): I had to replace "#include <exception>" with "#include <stdexcept>" in Query/CParser.cpp in order to compile it on Linux.
I looked into this and #include <exception> should work on Linux as it is used in the sigil_exceptions.cpp code that works across all platforms. So I googled and it seems some platforms that use std::runtime exceptions need to include <stdexcept> as well.

And on all platforms that I looked at <stdexcept> also included <exception> to get its base class std::exception.

So I have just now pushed code to do the following for all platforms:

#include <exception>
#include <std::except>

and this seems to work fine on macOS and should hopefully work fine on Linux as well.

Thanks!
KevinH is online now   Reply With Quote