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?
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?
The library was changed to hide internal structures better. So what you need to do is this:
Then when you dynamically do a LoadLibrary, do this:
The following code, which causes the unresolved external, will now work fine again:
I posted this here since I could find no other location. I Googled the problem and found other people running into the same problem but with no solution so they just downgraded to an older version of libpng again. So I thought I would post it here.