'memset' not declared in TheoraVideoFrame.cpp
Brought to you by:
kspes
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>
Hi,
ok, good point, I'll add it. which include did you add? You didn't specify? stdlib.h or memory.h?
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.
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