VisualStudio ERROR - cannot open source file "string.h" 해결방법

CODEDRAGON Development/IDE, Editor

반응형


 

 

 

오류메시지

표준 라이브러리 헤더파일들이 모두 찾을 없다고 사백개가 넘는 에러가 나옵니다.

cannot open source file "string.h"

Severity        Code        Description        Project        File        Line        Suppression State

Error (active)        E1696        cannot open source file "string.h"        ch-basic        c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\include\cstring        8        

 


 

 

 

 

 

 

해결방법 1 (Resolved)

VS 메뉴: [Project] >> [ProjectName Properties…] >>

왼쪽 [Configuration Properties] > [General]


 

오른쪽 에서 "Windows SDK Version" 다른 버전으로 선택 >>

[적용] >> [확인]


 

 

 

 

아래의 방법도 시도해 보았지만 해결되지는 않았습니다. 해결방법에 참고하세요.

해결방법 2

Visual Stduio 삭제 재설치

 

 

해결방법 3

Visual Studio Installer 실행 >>

[Window 8.1 UCRT SDK] 항목 체크 >>

우측 하단의 [수정]


 


 

 

 

 

 

해결방법 4

VS 메뉴: [Project] >> [ProjectName Properties…] >>

왼쪽 [Configuration Properties] > [VC++ Directories]


 

"Library Directories"항목 선택 >> 오른쪽의 [드롭다운아이콘] 클릭 >> [<Edit…>]


 

 

[New Line]아이콘 클릭 아래와 같이 ucrt 경로를 찾아 설정 >> [OK] 버튼을 클릭합니다.

C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17134.0\ucrt


 

[확인]


 

 




반응형