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

‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? #272

Open
Adela0814 opened this issue Jul 3, 2023 · 0 comments

Comments

@Adela0814
Copy link

Repro step:
Install sleepy-discord via vcpkg install sleepy-discord[compression]:x64-linux

Error message:

/root/vcpkg/buildtrees/sleepy-discord/src/129fbab21b-0fb9b07de3.clean/sleepy_discord/zlib_compression.cpp:7:3: error: ‘memset’ was not declared in this scope
    7 |   memset(&stream, 0, sizeof(stream));
      |   ^~~~~~
/root/vcpkg/buildtrees/sleepy-discord/src/129fbab21b-0fb9b07de3.clean/sleepy_discord/zlib_compression.cpp:3:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    2 | #include "zlib_compression.h"
  +++ |+#include <cstring>
    3 | 
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