8000 fix to compile with gcc-9, 10, 11. by norayr · Pull Request #8 · louiz/biboumi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix to compile with gcc-9, 10, 11. #8

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

norayr
Copy link
@norayr norayr commented Aug 31, 2021

No description provided.

@norayr
Copy link
Author
norayr commented Aug 31, 2021

otherwise there is an error:

[ 88%] Building CXX object CMakeFiles/network.dir/src/network/tls_policy.cpp.o
[ 88%] Built targe
6DDA
t network
[ 90%] Building CXX object CMakeFiles/bridge.dir/src/bridge/bridge.cpp.o
/tmp/biboumi/src/bridge/bridge.cpp: In lambda function:
/tmp/biboumi/src/bridge/bridge.cpp:239:28: error: ‘strlen’ was not declared in this scope
  239 |         if ((line.size() > strlen("\01ACTION\01")) &&
      |                            ^~~~~~
/tmp/biboumi/src/bridge/bridge.cpp:12:1: note: ‘strlen’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
   11 | #include <utils/split.hpp>
  +++ |+#include <cstring>
   12 | #include <xmpp/jid.hpp>
make[2]: *** [CMakeFiles/bridge.dir/build.make:76: CMakeFiles/bridge.dir/src/bridge/bridge.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:566: CMakeFiles/bridge.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

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

Successfully merging this pull request may close these issues.

1 participant
0