I'm having a problem compiling some simple code.  I'm fairly new to C style
programing but do alot of web stuff php ect.

this is simple code for a main.c

#include <stdio.h>
#include <unistd.h>
#include <directfb.h>

int main (int argc, char **argv)
{

   DirectFBInit (&argc, &argv);

}

and from my experience it should compile with the following command.

gcc -I/usr/local/include/directfb main.c

but this is what I get returned to me

/tmp/cc8eA3K4.o: In function `main':
main.cpp:(.text+0x1c): undefined reference to `DirectFBInit'
/tmp/cc8eA3K4.o:(.eh_frame+0x11): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status

can anyone tell me what I'm doing wrong?  Am I failing to use the right
include? Do I need to add something to my make command?

Any help would be much appreciated.
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to