2013-04-08 48 views
0

我在Ubuntu 12.04 LTS上使用Eclipse 3.7.2尝试使用MathGL。 我的简单,C++的样子:Eclipse中的libpng警告

#include <iostream> 
#include <mgl2/mgl.h> 

using namespace std; 

int main() { 

mglGraph gr; 
gr.FPlot("sin(pi*x)"); 
gr.WritePNG("test.png"); 

return 0; 
} 

当我运行它,我得到以下警告:

libpng warning: Application built with libpng-1.2.46 but running with 1.5.13 

而且test.png无法显示。

关于如何解决它的任何想法?

谢谢!

回答

0

你将不得不重新建立你的应用程序来使用libpng-1.5.13。目前它是用1.2.46构建的。或者您可以阅读这两个版本的发行说明,并确定1.2.46支持的内容并保持在这些范围内。您必须尝试使用​​不在1.2.46中的功能lidpng