【发布时间】:2013-03-31 03:57:15
【问题描述】:
我在 Ubuntu 12.04 LTS 上使用 Eclipse 3.7.2 尝试使用 MathGL。 我的简单 c++ 看起来像:
#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无法显示。
关于如何解决它的任何想法?
谢谢!
【问题讨论】:
标签: c++ eclipse ubuntu png libpng