I worry for which libraries and where to find them when building a project with mathgl lib I put the include directories but I dont know wher to find the library in the project properties for simple program lines such as the following
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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