发新话题
打印

求助:用make编译时遇到的问题

求助:用make编译时遇到的问题

我在用make编译文件时出现如下信息,不知道如何做才不会出现此类信息?有知道的吗?
5 Y& o5 b  s+ |% P3 l[root@localhost lbw]# make snmpdemoapp
* ~6 s; ]& _" bmake: *** Warning: File `snmpdemoapp.c' has modification time in the future (2006-07-07 16:47:50 > 2006-07-07 16:45:00)  Q# P7 j/ o8 C
gcc -I. `net-snmp-config --cflags`   -c -o snmpdemoapp.o snmpdemoapp.c
& K' c" ^" c7 \gcc -o snmpdemoapp snmpdemoapp.o `net-snmp-config --libs`
9 b0 T3 b. i, z3 V5 T$ i* Q1 H/ g7 xmake: warning:  Clock skew detected.  Your build may be incomplete.      

TOP

Touch every file in your directory and then make again      
'
梅须逊雪三分白 雪却输梅一段香

TOP

你能跟我说说原因吗?我想知道是为什么?谢谢!      

TOP

make: *** Warning: File `snmpdemoapp.c' has modification time in the future (2006-07-07 16:47:50 > 2006-07-07 16:45:00)  w% J: X' r5 L# ?
已经说得很清楚了,这个文件的修改时间比当前时间要晚      
上帝说,有问题,找GOOGLE 写程序是很神圣的事情!同样只是装系统,卖菜的大娘会的事情不见得就跟卖菜一样了。

TOP

[QUOTE=lbwdevil]你能跟我说说原因吗?我想知道是为什么?谢谢![/QUOTE]5 n! T2 s/ H! s  I7 K0 d, }$ z; p
make 是通过比较 files 的 mtime 来决定是否需要 update 一个 target 的, 你可能是修改过 system time, 导致 make 不能 work well       
'
梅须逊雪三分白 雪却输梅一段香

TOP

我明白了.谢谢啦!!      

TOP

testing ...      
'
梅须逊雪三分白 雪却输梅一段香

TOP

发新话题