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无法显示。
关于如何解决它的任何想法?
谢谢!