用openwrt1505编译gpsd时出现错误‘undefined refrence 'CTRL' ’
像这样:
点击(此处)折叠或打开
-
gpsmon.o: In function `main':
-
gpsmon.c:(.text.startup+0x92c): undefined reference to `CTRL'
-
collect2: error: ld returned 1 exit status
-
scons: *** [gpsmon] Error 1
-
scons: building terminated because of errors.
解决办法,需要在gpsmon.c 中 include <sys/ttydefaults.h>
简单吧!
像这样:
-
--- a/gpsmon.c
-
+++ b/gpsmon.c
-
@@ -20,6 +20,7 @@
-
#include <sys/types.h>
-
#include <sys/stat.h>
-
#include <sys/select.h>
-
+#include <sys/ttydefaults.h>
-
#include <fcntl.h>
-
#include <unistd.h>
阅读(2128) | 评论(0) | 转发(0) |