Menu

#22 'memset' not declared in TheoraVideoFrame.cpp

svn trunk
unread
nobody
None
7
2014-06-23
2014-06-17
Anonymous
No

When compiling for Linux / Android, I receive the following error:

theoraplayer/src/TheoraVideoFrame.cpp:83:27: error: ‘memset’ was not declared in this scope

Adding "#include <string.h>", "#include <memory.h>" or "#include <cstring>" at the top of TheoraVideoFrame.cpp resolves the issue and allows compilation.</cstring></memory.h></string.h>

Discussion

  • Krešimir Špes

    Krešimir Špes - 2014-06-18

    Hi,

    ok, good point, I'll add it. which include did you add? You didn't specify? stdlib.h or memory.h?

     
  • Joe LeVeque

    Joe LeVeque - 2014-06-18

    Sorry. SourceForge parsed out the filenames because they were in angle brackets. The include files that declare memset() and correct the problem are:

    string.h / cstring
    memory.h (because it simply includes string.h)

    I figure I'd leave it up to you to add whichever one you'd like in order to keep things consistent in the library.

    On a side note, I also posted my bug reports on the Google Code bugtracker, because I was under the assumption that you had moved the project from SourceForge to Google Code because the links on the http://libtheoraplayer.cateia.com/ homepage now point to Google Code. Is there a transition in progress, or do you intend to continue using this SourceForge bugtracker? Just curious. Thanks.

     
  • Krešimir Špes

    Krešimir Špes - 2014-06-23

    I didn't get email notifications from the google code tracker, let's switch the discusson there now.

    link: https://code.google.com/p/libtheoraplayer/issues/detail?id=1

     

Log in to post a comment.

Monday.com Logo