코드가 많아져서 그런지 빌드 때 아래와 같은 오류가 발생했다.


fatal error C1083: 컴파일러 중간 파일 파일을 열 수 없습니다. '__PATH__\Release\x64\stdafx.obj': Not enough space



32비트 컴파일러 사용시 3GB 영역을 넘게 사용하려고 해서 문제가 발생하는 거라고 한다.

VS 2019 에서는 Configuration Properties > Advanced > Perferred Build Tool Architecture 라는 항목이 생겨서 64-bit 를 선택하면 된다.


VS 2017 에서는 해당 항목이 보이지 않는다. 하지만 vcxproj 에 아래 내용을 추가하면 64 bit 툴을 사용하는 것 같다. vcxproj 에서 'Microsoft.Cpp.defaul.props' Import 항목 아래에 아래 내용을 추가하자.


<PropertyGroup>

    <PreferredToolArchitecture>x64</PreferredToolArchitecture>

</PropertyGroup>



참고 : 


https://stackoverflow.com/questions/60464532/vs2019-fatal-error-c1083-cannot-open-compiler-intermediate-file-xxxx-ipdb-not


Using MSBuild with the 64-bit Compiler and Tools

728x90

+ Recent posts