Originally Posted by SciYro
1) see as stdout is text, and its outputting characters, i say its working perfectly. What exactly where you trying to do, actually display the image?
2) Nope, well, there is the framebuffer, but really, there is little reason to use it, unless of course you need display graphics as a command line only program. You should look up graphical libraries. There are quite a few, the choice will mostly depend upon what type of graphics you are trying to display.
3) As a side note, if you where actually trying to display the image on the screen in question 1, then you need a graphical output to do that, not text based. A graphics library is the best way to go about it, as already mentioned.
Thanks for your help.
I have downloaded and install g2-0.72 and trying to run a small
program. When compiled with gcc giving me errors as bellow...
id = g2_open_PS("rect.ps", g2_A4, g2_PS_land);
g2_rectangle(id, 20, 20, 150, 150);
[root@localhost C Programs]# gcc test.c
/tmp/cc8u4Gof.o(.text+0x29): In function `main':
: undefined reference to `g2_open_PS'
/tmp/cc8u4Gof.o(.text+0x6a): In function `main':
: undefined reference to `g2_rectangle'
/tmp/cc8u4Gof.o(.text+0x78): In function `main':
: undefined reference to `g2_close'
collect2: ld returned 1 exit status