libpng “png_set_longjmp_fn” not found

前端 未结 3 825
深忆病人
深忆病人 2021-01-18 04:47

I\'m using libpng from ubuntu and when I try to compile a c++ file I get

undefined reference to `png_set_longjmp_fn\'

I\'m using libpng version 1.6.8

3条回答
  •  心在旅途
    2021-01-18 05:29

    Perhaps you have built with libpng-1.6.8 but are linking to an earlier version of libpng. The "png_set_longjmp_fn()" API was introduced in libpng-1.4.x. Ubuntu 13:10 currently comes with libpng-1.2.49 (see /usr/include/libpng12), which does not supply png_set_longjmp_fn().

提交回复
热议问题