I am using Fedora Core 17 and I wrote a graphics program in C
with the following code

#include <stdlib.h>
#include <vga.h>

int main(void)
{
   vga_init();
   vga_setmode(G320x200x256);
   vga_setcolor(4);
   vga_drawpixel(10, 10);

   sleep(5);
   vga_setmode(TEXT);

   return EXIT_SUCCESS;
}

I compiled it and run the executable file generated in command mode after
logging in as root.
But i get the following error

Using fbdev,4224KB at d0013000
svgalib 1.9.25
svgalib: Signal 11 : Segmentation fault received
Segmentation fault (core dumped)

How can i run the program successfully? Please help...

-- 
Tanzeem M.B
Programmer, C-DIT

-- 
-- 
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To control your subscription visit 
http://groups.google.co.in/group/ilug-tvm/subscribe
To post to this group, send email to ilug-tvm@googlegroups.com
To unsubscribe from this group, send email to
ilug-tvm-unsubscr...@googlegroups.com



For details visit the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Free 
Software Users Group,  Thiruvananthapuram" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ilug-tvm+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to