seriousgeek 0 Newbie Poster

Hi everyone,
I've recently installed mandrive 2009.1 spring edition in my desktop.It is required that i run low level graphics related C programs( using vga.h header files).For this, it was required that install svgalib and related headers..
All these were done, and i dont have any problems compiling such programs using the command
gcc - lvga <prog_name.c>
But the problem is that i'm unable to the run the programs after compilation as i get the following message wen i try to run it:

You must be the owner of the current console to use svgalib.
Not running in a graphics capable console,
and unable to find one.
Using VIA Unichrome driver, 16384KB.
svgalib 1.9.25
You must be the owner of the current console to use svgalib.
Not running in a graphics capable console,
and unable to find one.

I ran this logged in as root..I'm confused on how to solve this problem.Please help me out..

Thanks in advance..