I try to use mglData just as the simplest way:
#include <mgl2/qt.h>
int main()
{
mglData y;
return 0;
}
and compile it with:
g++ *.cpp -lmgl-qt -lmgl
Then I get a executable file a.out. But when I try to execute by
./a.out
Error occured:
Segmentation fault (core dumped)
How do I solve this problem?