yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots
https://yourWaifu.github.io/sleepy-discord/
MIT License
708 stars 93 forks source link

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

Open Adela0814 opened 1 year ago

Adela0814 commented 1 year ago

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 |