Error while running the C code

Hi Sir,

      I am running C program which include directfb.h header     files.

           root@lxdevenv:~/Desktop\# vi n.c

root@lxdevenv:~/Desktop# gcc n.c -o n -I/usr/local/include/directfb -L/usr/local/lib -ldirectfb -lfusion -ldirect -lpthread -lm
n.c: In function �main':
n.c:103: warning: passing argument 2 of �DirectFBInit' from incompatible pointer type
root@lxdevenv:~/Desktop# ./n

     \(c\) 2001-2009  The world wide DirectFB Open Source Community
     \(c\) 2000-2004  Convergence \(integrated media\) GmbH
   \----------------------------------------------------------------

\(*\) DirectFB/Core: Single Application Core. \(2009-09-09 09:37\) 
\(!\) Direct/Util: opening '/dev/fb0' failed
 --> No such device
\(!\) DirectFB/FBDev: Error opening framebuffer device!
\(!\) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
\(!\) DirectFB/Core: Could not initialize 'system_core' core!
 --> Initialization error!
\(!\) [13937:    0.000] --> Caught signal 11 \(at 0x34, invalid address\) <--
Aborted
root@lxdevenv:~/Desktop\#

---------- Post updated at 04:02 AM ---------- Previous update was at 03:58 AM ----------

Hi,

       i got the error message like above ....
pls guide me ,,, im not getting what is the problem... any answer will appreciated,,,,,

I don't have any experience with DirectFB, but I think the lines

(!) Direct/Util: opening '/dev/fb0' failed
--> No such device
(!) DirectFB/FBDev: Error opening framebuffer device!

tell you that without a FB device specified it won't work.

And for future reference, please use [code][ / code] tags for code, listings, output, ...

Hi Sir,

      i goggled, but i dint get any proper information that how to enable tat Framebuffer ...