내 프로그램 용 make 파일을 만들고 있습니다. 기본 설정 : twitServer.cpp 및 그 사용 : Command.h Client.hC++ 프로그램 컴파일 및 링크 - 파일 만들기
make 파일을 만들었지 만 작동하지 않습니다. 알아낼 수 있습니까?
twitServer: twitServer.o Command.o Client.o
g++ -Wall -o twitServer.o Command.o Client.o twitServer
twitServer.o: twitServer.cpp Command.h Client.h
g++ -c -Wall twitServer.cpp
Command.o: Command.cpp Command.h
g++ -c -Wall Command.cpp
Client.o: Client.cpp Client.h
g++ -c -Wall Client.cpp
clean:
rm twitServer Client.o Command.o Client.o
내 오류는 다음과 같습니다 g ++ : twitServer : 그런 파일이 없습니다 아니면이 모든 파일을 가지고 있지만
디렉토리 : Client.cpp Client.o Command.h 메이크 twitServer.cpp Client.h을 Command.cpp Command.o 메이크 ~ twitServer.o
'작동하지 않는 것 같습니다.'에 대해 자세히 설명해주십시오. 오류가 있습니까? –
명령 시작시 TAB 특수 문자를 사용하고 있습니까? (g ++ 이전). 그 makefile을 실행하려고 할 때 나타나는 오류 메시지는 무엇입니까? – ondrejdee
다음은 오류입니다. g ++ : twitServer : 해당 파일이나 디렉토리가 없습니다. –