I had to create a graphic with g2 graphic library, but the program doesn't draw anything, not even the line. Also, I can't change the font size. I'm using gcc with -Wall -ansi -pedantic -lgd -lX11 -lm and -lg2. I have ubuntu running in virtualbox.
Could you give me some help?
Here's the code:
Also, could someone explain to me why I couldn't put zero in the return? As far as I know, the function won't return anything or will it?
const double pi = 4.*atan(1.);
janela = g2_open_X11(800,600);