에 내가 '메이크 다음있어했습니다 : 이것은 잘 작동전환은 연타하는 ++ 메이크
all: xmltest
xmltest: xmltest.cpp tinyxml2.cpp tinyxml2.h
-make all
실행 실행 한 후'생산 'xmltest로합니다.
그러나 컴파일러를 clang ++로 전환하고 싶습니다. 그래서 파일의 시작 부분에이 라인을 추가했습니다 :
clang++ xmltest.cpp tinyxml2.cpp tinyxml2.h -o xmltest
clang++.exe: warning: treating 'c-header' input as 'c++-header' when in C++ mode, this behavior is deprecated
clang++.exe: error: cannot specify -o when generating multiple output files
<builtin>: recipe for target 'xmltest' failed
make: *** [xmltest] Error 1
어떻게 원래 메이크업 파일에 최소한의 수정으로이 문제를 해결하는 :
CXX=clang++
지금 make all
을 실행 오류가 발생합니다?
xmltest.cpp: tinyxml2.h
tinyxml2.cpp: tinyxml2.h
을 그리고 /가 번역을 연결 컴파일 :
정확한 명령은 해당 행없이 실행 한 다음 그 행에서 실행됩니까? –
@EtanReisner 문제의'make'의 출력을 – Kao