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
Related posts:
- Fehler während Kompilierung von screen-4.0.3 unter uclibc: sched.h:26: error: redefinition of ‘struct event’
- /lib/ld-linux.so.2: No such file or directory
- Maven und log4j 1.2.15
- Fatal error: Error: cannot open phar “/to/php-5.2.10/pear/install-pear-nozlib.phar” in /to/php-5.2.10/pear/install-pear-nozlib.phar on line 795
- Fehler: “svn: Unrecognized URL scheme for ‘http://some.subdomain.wolf-u.li’” mit Subversion
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)