1、/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start': (.text+0x18):undefined reference to `main' collect2: ld 返回 1 Reason: no main function in source file 2、to get compile options -I and -l pkg-config lib e.g: pkg-config –cflags –libs dbus-1