본문 바로가기

Programming

Windows 32bit OS 기반 Visual C++ 2010 Express에서 64bit용으로 컴파일하기

Windows 32bit OS 기반 Visual C++ 2010 Express에서 64bit용으로 컴파일하기


출처: http://stackoverflow.com/questions/1865069/how-to-compile-a-64-bit-application-using-visual-c-2010-express


1. Windows Software Development Kit version 7.1을 다운로드 및 설치한다. Visual C++ 2010 Express는 64비트용 컴파일러가 내장되어 있지 않지만, 이  SDK에는 포함되어 있다. SDK 다운로드 페이지는 다음과 같다. http://www.microsoft.com/download/en/details.aspx?id=8279


2. 프로젝트 설정을 변경한다. Project Properties 대화상자에 들어가서 상단의 "Configuration" 드롭다운을 선택하고 "All Configurations"를 선택하고 오른쪽 Platform 드롭다운이 "Win32"인 상태에서 맨 오른쪽의 "Configuration Manager" 버튼을 클릭한다. Project contexts 목록에서 프로젝트명을 선택한 후 오른쪽 Platform 드롭다운에서 "New"를 선택하고 , 팝업창의 New platform에서 "x64"를 선택 후 팝업창이 닫히면 "Active solution platform" 드롭다운에서도 "x64."를 선택한다. 다시 Project Property Page 대화상자에 돌아와서 "Platform" 드롭다운에서 "x64."를 선택한다.


3. 마지막으로, Configuration Properties | General 메뉴의 Platform Toolset 값을 "v100"에서 "Windows7.1SDK"로 변경한다.


4. 기타 C/C++ | Preprocessor의 Preprocessor Definitions의 WIN32를 WIN64로 변경하고, Linker 설정에서 Import Library가 있다면 64bit 파일인지 확인하는 등의 조치는 추가로 필요할 수 있다.

'Programming' 카테고리의 다른 글

curl x64 빌드 (for Windows)  (0) 2015.01.26
db query mapper  (0) 2015.01.26
프로젝트 디렉토리 만들기 1  (0) 2012.02.02
프로젝트 디렉토리 만들기 2 - bat 파일  (0) 2012.02.01
Redmine 사용법 및 규칙  (0) 2012.02.01