【转载】MathGL中报错:undefined reference to `mgl_create_graph‘的解决方法

2023-05-16

概述:

在环境:ubuntu 20.04 中 成功下载好了mathGL,但是最后编译却报错

undefined reference to `mgl_create_graph'


如下:

各种寻找问题无果;


转载一篇文章:

c++ - 编译第一个Mathgl示例错误 - IT工具网 (coder.work)


改成这样:

g++ -o a mathgl_plot.cpp -lmgl

结果如下:

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

【转载】MathGL中报错:undefined reference to `mgl_create_graph‘的解决方法 的相关文章

随机推荐