我的問題是,每當我嘗試使用Makefile中,我得到編譯如下:的Makefile:時鐘偏斜檢測
make: Warning: File `Board.c' has modification time 1.3e+03 s in the future
gcc -Wall -c -Wvla -lm Board.c -o Board.o
gcc -Wall -c -Wvla -lm PlayBoard.c -o PlayBoard.o
gcc -lm ErrorHandle.o Board.o PlayBoard.o -g -o PlayBoard
make: warning: Clock skew detected. Your build may be incomplete.
我的Makefile:
CC = gcc
FLAGS = -Wall -c -Wvla
PlayBoard: ErrorHandle.o Board.o PlayBoard.o
$(CC) -lm ErrorHandle.o Board.o PlayBoard.o -g -o [email protected]
PlayBoard.o: PlayBoard.c Board.o
$(CC) $(FLAGS) -lm PlayBoard.c -o [email protected]
Board.o : ErrorHandle.o Board.c Board.h
$(CC) $(FLAGS) -lm Board.c -o [email protected]
.PHONY : clean
clean:
rm -f Board.o PlayBoard.o PlayBoard
all : PlayBoard
謝謝您的幫助。
檢查'Board.c'的修改時間,看來,你可以從另一來源,當在創建的時候是領先你MACHIN都複製這一點。一個解決方案可以運行'觸摸Board.c'將修改時間設置爲當前時間 –
是否可能存儲在網絡位置的源? – stijn
[在遠程Linux機器上編譯C++ - 「檢測到時鐘歪斜」警告]可能的重複(http://stackoverflow.com/questions/3824500/compiling-c-on-remote-linux-machine-clock-skew-detected-警告) – skrrgwasme