libpng“png_set_longjmp_fn”未找到 [英] libpng "png_set_longjmp_fn" not found

查看:1059
本文介绍了libpng“png_set_longjmp_fn”未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从ubuntu使用libpng,当我尝试编译一个c ++文件时,我得到

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

未定义的引用`png_set_longjmp_fn'

undefined reference to `png_set_longjmp_fn'

我使用libpng版本1.6.8

I'm using libpng version 1.6.8

如果你有兴趣阅读代码,请让我知道,但我不是

If you are interested in reading the code please let me know, but I do not this has to do with my bad code.

推荐答案

也许你已经构建了libpng-1.6.8,但链接到早期版本的libpng。 png_set_longjmp_fn()API是在libpng-1.4.x中引入的。 Ubuntu 13:10目前提供libpng-1.2.49(参见/ usr / include / libpng12),它不提供png_set_longjmp_fn()。

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().

这篇关于libpng“png_set_longjmp_fn”未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆