Quantcast
Channel: Programm – wolf-u.li
Viewing all articles
Browse latest Browse all 19

Fehler während der Kompilierung von flac: „‚memcmp‘ was not declared in this scope“

$
0
0

Während der Kompilierung von flac habe ich den folgenden Fehler bekommen:

main.cpp: In function 'int main(int, char**)':
main.cpp:75:27: error: 'memcmp' was not declared in this scope

Hintergrund ist wohl eine vergessene Deklarierung von includes, da der folgende Patch das ganze behebt:

--- examples/cpp/encode/file/main.cpp.orig      2007-09-13 09:58:03.000000000 -0600
+++ examples/cpp/encode/file/main.cpp   2007-11-18 12:59:45.000000000 -0600
@@ -30,6 +30,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <cstring>
 #include "FLAC++/metadata.h"
 #include "FLAC++/encoder.h"
 
--- examples/cpp/decode/file/main.cpp.orig      2008-09-14 20:37:05.000000000 +0200
+++ examples/cpp/decode/file/main.cpp   2008-09-14 20:37:19.000000000 +0200
@@ -30,6 +30,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <cstring>
 #include "FLAC++/decoder.h"
 
 static FLAC__uint64 total_samples = 0;

Dieser Patch kann mit „patch -p0 “ im flac-Verzeichnis eingebaut werden.


Related posts:


© 2005-2014 by Uli Wolf - This Content is distributed under the Creative Commons License
This feed is for personal, non-commercial use only.
The use of this feed on other websites without attribution to the author and notification of the author breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint: d2a576b5311479d89eff39b7ca886f6b)

Viewing all articles
Browse latest Browse all 19