Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build with error: ‘memcpy’ was not declared in this scope #12

Closed
shrx opened this issue Jan 12, 2017 · 0 comments
Closed

Comments

@shrx
Copy link

shrx commented Jan 12, 2017

Building with gcc 6, make fails with:

guetzli.cc
guetzli/guetzli.cc: In function ‘bool {anonymous}::ReadPNG(FILE*, int*, int*, std::vector<unsigned char>*)’:
guetzli/guetzli.cc:119:45: error: ‘memcpy’ was not declared in this scope
         memcpy(row_out, row_in, 3 * (*xsize));
                                             ^
guetzli/guetzli.cc: In function ‘int main(int, char**)’:
guetzli/guetzli.cc:221:68: error: ‘memcmp’ was not declared in this scope
       memcmp(in_data.data(), kPNGMagicBytes, sizeof(kPNGMagicBytes)) == 0) {
                                                                    ^
guetzli.make:165: recipe for target 'obj/Release/guetzli.o' failed
make[1]: *** [obj/Release/guetzli.o] Error 1
Makefile:28: recipe for target 'guetzli' failed
make: *** [guetzli] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant