Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用 mglData 作为最简单的方法:
#include <mgl2/qt.h> int main() { mglData y; return 0; }
并编译它:
g++ *.cpp -lmgl-qt -lmgl
然后我得到一个可执行文件a.out。但是当我尝试执行时
./a.out
发生了错误:
Segmentation fault (core dumped)
我该如何解决这个问题?
我想它应该工作。你自己编译了 MathGL 吗?也许你在这个过程中出了什么问题。