Menu

#284 linking png static library leads to broken applicatons on mingw64

libpng_code
open
nobody
None
5
2018-08-05
2018-08-05
i_a
No

apps staticly linked with to libpng16.a and the current beta89 libpng17.a crash with the error

The application was unable to start correctly (0xc000007b). Click OK to close the application.
linking to libpng16.dll.a and libpng17.dll.a generate working code
I was trying to build mozjpeg without the need for an extra dll but all I could get is errors so I donwloaded the latest beta compiled the static library only to find that none of the example applications linked to the static library libpng17.a run
I'm using mingw-w64-x86_64 with gcc 8.2 from https://github.com/msys2/msys2/ all synced up
is it possible to generate a working static library with mingw?

Discussion


Log in to post a comment.