|
|
我从DFB网站上下载0.9.24版本安装文件安装,编译运行tutorials的例子程序.但是总是有下面的错误信息:
/tmp/ccIx9sTf.o(.text+0x58): In function `main':
/home/dang/prog/dfb/ttt.c:29: undefined reference to `DirectFBInit'
/tmp/ccIx9sTf.o(.text+0x74):/home/dang/prog/dfb/ttt.c:32: undefined reference to `DirectFBCreate'
collect2: ld 返回 1
不知道为什么,请大侠们指导.
我的编译语句: gcc -g ttt.c -I/usr/local/include/directfb -L/usr/local/lib -o ttt |
|