Menu

#12 oggvideotools fails to build on gcc-10: error: 'memset' was not declared in this scope

admin
unread
nobody
None
5
2021-11-13
2021-11-13
No

Build fails for a missing include:

oggvideotools-code/src/base/test/decoderTest.cpp: In function 'int main(int, char**)':
/home/slyfox/dev/svn/oggvideotools-code/src/base/test/decoderTest.cpp:19:5: error: 'memset' was not declared in this scope
   19 |     memset(&header, 0, sizeof(OggHeader));
      |     ^~~~~~
oggvideotools-code/src/base/test/decoderTest.cpp:8:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    7 | #include <iostream>
  +++ |+#include 

Attaching the trivial patch used in NixOS.

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB