성태의 닷넷 이야기
작은 글씨
큰 글씨
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] 한국어 로컬 모델 풀 파인튜닝 - LLM 바닥부터 만들기 (대형...
[정성태] 그러고 보니, 저도 노안이라서... 어느 순간부터 웹 브라우저 ...
[정성태] The case of the invalid handle erro...
[정성태] 해당 글을 잠시 읽어보니까, 그 글에 답이 잘 나오는군요. ^^...
[정성태] Stating the obvious about debugging...
[정성태] https://www.c-sharpcorner.com/artic...
[정성태] How can I detect if one of my helpe...
[정성태] 32비트 값을 64비트 레지스터에 넣을 때, 상위 32비트에 대...
[정성태] 본문에서 상위 8바이트의 16비트가 사용되지 않는 것을 볼 수 ...
[정성태] 한 번도 궁금한 적이 없었는데, If I mark my t...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>Platform Toolset 설정에 따른 Visual C++의 헤더 파일 기본 디렉터리</h1> <p> "Platform Toolset"을 "Visual Studio 2017 (v141)"로 설정이 되면 기본적으로 다음의 디렉터리들이 include 폴더 대상이 됩니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\atlmfc\include C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\VS\include C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\shared C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\winrt C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.1\Include\um </pre> <br /> 위의 디렉터리들은 사실 다음과 같은 변수로 할당되어 있는데,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > $(VC_IncludePath) = C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\include C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.12.25827\atlmfc\include C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\VS\include C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt $(WindowsSDK_IncludePath) = C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\shared C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\winrt C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.1\Include\um </pre> <br /> 결국 Visual Studio 2017에서 C++ 프로젝트를 생성하는 경우에는 기본적으로 다음과 같은 헤더 폴더 경로가 설정된 것으로 시작합니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > $(VC_IncludePath) $(WindowsSDK_IncludePath) </pre> <br /> 그런데 만약 "Platform Toolset"을 다른 값, 예를 들어 "Visual Studio 2015 - Windows XP (v140_xp)"로 바꾸면 헤더 파일을 위한 기본 디렉터리가 다음과 같이 바뀝니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\include </pre> <br /> 역시 이것도 다음의 변수에 각각 할당된 것들입니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > $(WindowsSdk_71A_IncludePath) = C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\include $(VC_IncludePath) = C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt </pre> <br /> 참고로, WindowsSdk_71A_IncludePath와 WindowsSDK_IncludePath 변수들은 해당 플랫폼 툴셋이 정의된 경우에만 정상적인 경로를 갖습니다.<br /> <br /> <hr style='width: 50%' /><br /> <br /> 주의해야 할 사항이 있다면, 이전 버전의 Visual Studio에서 생성한 Visual C++ 프로젝트를 2017 버전으로 마이그레이션하는 경우 헤더 파일을 위한 기본 디렉터리가 자동으로 바뀌지는 않는다는 점입니다.<br /> <br /> 즉, 기존 프로젝트가 "Visual Studio 2015 - Windows XP (v140_xp)"로 설정되어 있으면 그 프로젝트를 (마이그레이션 없이) 2017 버전에서 여는 경우 기본 디렉터리가 <span class="tex2jax_ignore">$</span>(VC_IncludePath), <span class="tex2jax_ignore">$</span>(WindowsSDK_IncludePath)로 바뀌지 않습니다.<br /> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
1303
(왼쪽의 숫자를 입력해야 합니다.)