Error-PCH warning: cannot find a suitable header stop location. An IntelliSense PCH file was not generated

CODEDRAGON Development/C, C++

반응형

   

Error-PCH warning: cannot find a suitable header stop location. An IntelliSense PCH file was not generated

   

   

에러 메시지

Severity        Code        Description        Project        File        Line

Error (active)                PCH warning: cannot find a suitable header stop location. An IntelliSense PCH file was not generated.        ch-basic        c:\CodeLab\git\study_cpp\ch-basic\ch-basic\Ex07.cpp        34

   

   

   

해결 방법 1

main() 중복 확인

   

   

해결 방법 2

Visual Studio의 "Solution Explorer"에서 프로젝트 선택 후 마우스 우클릭 >> [Properties]

   

[Configuration Properties] >> [C/C++] >> [Precompiled Headers]

   

"Precomplied Header"항목을 [Not Using Precompiled Headers]로 선택 >>

[적용] >> [확인]

   

   

해결 방법 - 3차

#include "header.h" 구문 추가