oatpp / example-crud

A complete example of a "CRUD" service (UserService) built with Oat++.
https://oatpp.io/
Apache License 2.0
100 stars 63 forks source link

Docker build fails on handleError #33

Open JosefSommerauer opened 4 months ago

JosefSommerauer commented 4 months ago

docker build -t example-crud --no-cache . fails with following error message:

In file included from /service/src/ErrorHandler.cpp:2:
/service/src/ErrorHandler.hpp:22:3: error: 'std::shared_ptr<oatpp::web::protocol::http::outgoing::Response> ErrorHandler::handleError(const Status&, const oatpp::String&, const oatpp::web::server::handler::ErrorHandler::Headers&)' marked 'override', but does not override
   22 |   handleError(const Status& status, const oatpp::String& message, const Headers& headers) override;
      |   ^~~~~~~~~~~
make[2]: *** [CMakeFiles/crud-lib.dir/build.make:90: CMakeFiles/crud-lib.dir/src/ErrorHandler.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/crud-lib.dir/all] Error 2
make: *** [Makefile:101: all] Error 2
The command '/bin/sh -c make' returned a non-zero code: 2