Unresolved external png_set_longjmp_fn in libpng
问题 When loading libpng.dll dynamically, after upgrading from libpng13.dll to version 1.5, the compiler started reporting this unresolved external: png_set_longjmp_fn How come and how do I fix it? 回答1: The library was changed to hide internal structures better. So what you need to do is this: typedef jmp_buf* (*png_set_longjmp_fnPtr)(png_structp png_ptr, png_longjmp_ptr longjmp_fn, size_t jmp_buf_size); png_set_longjmp_fnPtr mypng_set_longjmp_fnPtr = 0; Then when you dynamically do a LoadLibrary,