【发布时间】:2016-05-09 22:58:46
【问题描述】:
我在使用 makefile 时遇到问题。 我不知道为什么真的。
我的模块分布如下:
main.c:
#include "LL.h"
LL.c:
#include "LL.h"
LL.h:----
生成文件:
#makefile
a.out: main.o LL.o
gcc main.o LL.o
main.o: main.c LL.h
gcc -g -c main.c
LL.o: LL.c LL.h
gcc -g -c LL.c
我正在使用带有 ubuntu 的虚拟机,与 windows 时钟相比,时钟确实失效了。
我在标准输出上收到这条消息:
make: 警告:文件 `a.out' 未来的修改时间为 3.8e+03 s
make: `a.out' 是最新的。
make:警告:检测到时钟偏差。您的构建可能不完整。
有时会继续尝试链接/编译某些 make 行。
寻求启发 谢谢;)
【问题讨论】:
-
投票赞成关闭,因为可能的重复是:Compiling C++ on remote Linux machine - “clock skew detected” warning 和 Makefile : Clock skew detected 和其他人。