2013-04-08 46 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