Hi, Santosh Kumar G K wrote: > > > Hi, > > I am working on directfb 1.0.0 version. I have installed it. When i > try to compile my sample code(sample.c). I am getting the following > errors. > > I have used the following command to compile, > > gcc -I /usr/local/include/directfb sample.c > > I am getting the following errors, > > sample.c: In function ‘main’: > sample.c:20: warning: incompatible implicit declaration of built-in > function ‘memset’ > /tmp/ccAZzctK.o: In function `main': > sample.c:(.text+0x1d): undefined reference to `DirectFBInit' > sample.c:(.text+0x29): undefined reference to `DirectFBCreate' > collect2: ld returned 1 exit status > > Can u please help me out in this regard as soon as possible. > > Thanks and Regards, > Santosh Kumar G.k > You forgot the library of directfb gcc `pkg-config --cflags directfb` `pkg-config --libs directfb` sample.c -o sample
Regards Michael _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev