--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/groups/opt_out.
The linker strips code that is not used directly, and since you never directly used the class SkPNGImageDecoder, it does not get included in the final executable. So EncodeFile fails to find it.Try adding the following to main.cpp:#include "SkForceLinking.h"__SK_FORCE_IMAGE_DECODER_LINKING;This will ensure that it gets linked properly.