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

build examples error #1803

Open
XYLongzzZ opened this issue Nov 4, 2024 · 0 comments
Open

build examples error #1803

XYLongzzZ opened this issue Nov 4, 2024 · 0 comments

Comments

@XYLongzzZ
Copy link

examples/EchoServer.cpp:56:6: error: no matching function for call to 'uWS::TemplatedAppBase<false, uWS::CachingApp >::ws<main()::PerSocketData>(const char [3], )'
}).listen(9001, [](auto listen_socket) {
^
In file included from examples/EchoServer.cpp:2:
src/App.h:272:32: note: candidate: 'template BuilderPatternReturnType&& uWS::TemplatedAppBase<SSL, BuilderPatternReturnType>::ws(std::string, uWS::TemplatedAppBase<SSL, BuilderPatternReturnType>::WebSocketBehavior&&) [with UserData = UserData; bool SSL = false; BuilderPatternReturnType = uWS::CachingApp]'
BuilderPatternReturnType &&ws(std::string pattern, WebSocketBehavior &&behavior) {
^~
src/App.h:272:32: note: template argument deduction/substitution failed:
examples/EchoServer.cpp:56:6: note: cannot convert '{((uWS::CompressOptions)((short unsigned int)(146 | 3840))), ((100 * 1024) * 1024), 16, ((100 * 1024) * 1024), false, false, true, nullptr, main()::<lambda(auto:18
)>{}, main()::<lambda(auto:19*, std::string_view, uWS::OpCode)>{}, main()::<lambda(auto:20*, std::string_view, uWS::OpCode)>{}, main()::<lambda(auto:21*)>{}, main()::<lambda(auto:22*, std::string_view)>{}, main()::<lambda(auto:23*, std::string_view)>{}, main()::<lambda(auto:24*, int, std::string_view)>{}}' (type '') to type 'uWS::TemplatedAppBase<false, uWS::CachingApp >::WebSocketBehavior<main()::PerSocketData>&&'
}).listen(9001, [](auto *listen_socket) {

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