2016-12-08 6 views
0

그래서 저는 C++의 초보자이고이 오류 메시지를 가지고있었습니다. Clean은 성공적이었고 어떤 이유로 든 빌드가 실패합니다. 나는이 경우 무엇을해야 할지를 정말로 모른다. 내 라이브러리와 경로를 확인했는데 괜찮습니다. 모든 행이 비어 있기 때문에 표시된 행은 실제로 이해가되지 않습니다. 아무도 내가 뭘 잘못하고 있었는지 알아낼 수 있습니까?C++ 정리 성공, 빌드 실패, 디렉토리 누락?

cd 'Z:\NetBeansProjects\Zahldarstellung2' 
C:\msys\bin\make.exe -f Makefile CONF=Debug clean 
"/C/msys/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf 
make.exe[1]: Entering directory `/z/NetBeansProjects/Zahldarstellung2' 
rm -f -r build/Debug 
rm -f dist/Debug/MinGW-Windows/zahldarstellung2.exe 
make.exe[1]: Leaving directory `/z/NetBeansProjects/Zahldarstellung2' 

CLEAN SUCCESSFUL (total time: 450ms) 
cd 'Z:\NetBeansProjects\Zahldarstellung2' 
C:\msys\bin\make.exe -f Makefile CONF=Debug 
"/C/msys/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf 
make.exe[1]: Entering directory `/z/NetBeansProjects/Zahldarstellung2' 
"/C/msys/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/zahldarstellung2.exe 
make.exe[2]: Entering directory `/z/NetBeansProjects/Zahldarstellung2' 
mkdir -p build/Debug/MinGW-Windows 
rm -f "build/Debug/MinGW-Windows/GanzeZahl.o.d" 
g++ -c -g -include . -MMD -MP -MF "build/Debug/MinGW-Windows/GanzeZahl.o.d" -o build/Debug/MinGW-Windows/GanzeZahl.o GanzeZahl.cpp 
cc1plus.exe: fatal error: .: No such file or directory 
compilation terminated. 
nbproject/Makefile-Debug.mk:67: recipe for target `build/Debug/MinGW-Windows/GanzeZahl.o' failed 
make.exe[2]: *** [build/Debug/MinGW-Windows/GanzeZahl.o] Error 1 
make.exe[2]: Leaving directory `/z/NetBeansProjects/Zahldarstellung2' 
nbproject/Makefile-Debug.mk:60: recipe for target `.build-conf' failed 
make.exe[1]: *** [.build-conf] Error 2 
make.exe[1]: Leaving directory `/z/NetBeansProjects/Zahldarstellung2' 
nbproject/Makefile-impl.mk:39: recipe for target `.build-impl' failed 
make.exe": *** [.build-impl] Error 2 

BUILD FAILED (exit value 2, total time: 654ms) 

도움 을 감사합니다는

+0

문제는 '-include'입니다. – drescherjm

답변

1

-include 옵션은 현재 소스 파일에 특정 파일을 포함하는 방법으로 사용을 접견. 예 : -include somefile.h은 소스 파일의 맨 위에 #include "somefile.h"을 수행하는 것과 같습니다.

여기서 문제는 단일 파일이 아닌 전체 디렉토리를 포함 시키려한다는 것입니다. 이것은 유효하지 않습니다. 난 당신이 정말 원하는 것을 추측

시스템 헤더 파일을 검색 할 경로의 목록에 경로을 추가 -I 옵션입니다.

+0

고마워요! 우리 친구들은 우리가 단지 디렉토리를 포함 할 수 있다고 말했고, 그것이 작동하지 않는다는 것을 몰랐습니다. 미래에 도움이 될 것 같아요. – szynima

관련 문제