微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

生成文件警告:警告:文件“main.cpp”将来修改时间为2.1e + 04s

我有一个工作的Makefile ,但有一个警告,我无法修复。

#Use the g++ compiler CC = g++ # Compiler flags: # -Wall (most warnings enabled) # -g (for debugging with gdb) CFLAGS = -Wall # Executable name: TARGET = deque_adt all: main.o deque_adt.o deque_adt $(TARGET): main.o deque_adt.o $(CC) $(CFLAGS) main.o deque_adt.o -o $(TARGET) main.o: main.cpp deque_adt.h $(CC) $(CFLAGS) main.cpp -c deque_adt.o: deque_adt.cpp deque_adt.h $(CC) $(CFLAGS) deque_adt.cpp -c clean: rm *.o *~ $(TARGET)

错误

make: Warning: File `main.cpp' has modification time 2.1e+04 s in the future g++ -Wall main.cpp -c g++ -Wall deque_adt.cpp -c g++ -Wall main.o deque_adt.o -o deque_adt make: warning: Clock skew detected. Your build may be incomplete.

有人可以帮我解决问题吗? 我试图在元素之间切换,但它仍然给出相同的警告。

在Linux上将可执行文件embedded数据时的符号名称

别名在脚本中

如何find在Linux中发起系统调用的进程的进程ID?

如何将64位整数转换为char数组并返回?

任何人都知道任何静态types的脚本语言?

Bashdate命令无效date

如何在linux kernel 3.5编程中用null / 0s / 1sreplace文件内容

重启进程脚本linux

由于权限问题,使用SSH的git克隆在Windows失败

如何用QT在树莓派上同时在LCD和HDMI上绘制图像?

为了扩大Ben Voigt的回答:

find /your/dir -type f -exec touch {} +

将更新目录中所有文件的时间戳。 然后你可以make clean && make重新make clean && make 。

尝试使用以下内容

rm Makefile sudo qmake yourproj. //or any command to create the makefile again make clean make

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐