Anonymous - 2013-08-21

include <mgl2 mgl.h="">

include "mgl2/qt.h"

int sample(mglGraph gr)
{
gr->Rotate(60,40);
gr->Box();
return 0;
}
//-----------------------------------------------------
int main(int argc,char
*argv)
{
mglQT gr(sample,"MathGL examples");
return gr.Run();
}

all the library lib I found have been set up and the program run but with the
RUN FINISHED; Segmentation fault; real time: 400ms; user: 40ms; system: 350ms
diagnostic message and nothing occurs
could you help?
i am under ubuntu 13.04 and netbeans 7.4