oatpp / benchmark-websocket

Websocket Client and Server for benchmarks with Millions of concurrent connections.

Home Page:https://oatpp.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build error

tleyden opened this issue · comments

$ cd ~/benchmark-websocket/server/main/build
$ make
Scanning dependencies of target my-project-lib
[ 12%] Building CXX object CMakeFiles/my-project-lib.dir/src/Logger.cpp.o
[ 25%] Building CXX object CMakeFiles/my-project-lib.dir/src/controller/WebSocketListener.cpp.o
[ 37%] Linking CXX static library libmy-project-lib.a
[ 37%] Built target my-project-lib
Scanning dependencies of target my-project-test
[ 50%] Building CXX object CMakeFiles/my-project-test.dir/test/tests.cpp.o
/home/ubuntu/benchmark-websocket/server/main/test/tests.cpp: In function ‘int main()’:
/home/ubuntu/benchmark-websocket/server/main/test/tests.cpp:20:51: error: no matching function for call to ‘oatpp::base::Environment::setLogger(Logger*)’
   oatpp::base::Environment::setLogger(new Logger());
                                                   ^
In file included from /home/ubuntu/benchmark-websocket/server/main/src/Logger.hpp:13:0,
                 from /home/ubuntu/benchmark-websocket/server/main/test/tests.cpp:2:
/usr/local/include/oatpp-0.19.4/oatpp/oatpp/core/base/Environment.hpp:299:15: note: candidate: static void oatpp::base::Environment::setLogger(const std::shared_ptr<oatpp::base::Logger>&)
   static void setLogger(const std::shared_ptr<Logger>& logger);
               ^~~~~~~~~
/usr/local/include/oatpp-0.19.4/oatpp/oatpp/core/base/Environment.hpp:299:15: note:   no known conversion for argument 1 from ‘Logger*’ to ‘const std::shared_ptr<oatpp::base::Logger>&’
CMakeFiles/my-project-test.dir/build.make:62: recipe for target 'CMakeFiles/my-project-test.dir/test/tests.cpp.o' failed
make[2]: *** [CMakeFiles/my-project-test.dir/test/tests.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/my-project-test.dir/all' failed
make[1]: *** [CMakeFiles/my-project-test.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Hello @tleyden ,

Just fixed it dd371fb

Regards,
Leonid

@tleyden ,

Please let me know if you have any questions.

Fixed client too 7eb2562