|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
/Wp64 (Detect 64-Bit Portability Issues)
Detects 64-bit portability problems on types that are also marked with the __w64 keyword.
/Wp64 is off by default in the Visual C++ 32-bit compiler and on by default in the Visual C++ 64-bit compiler.
Variables of the following types are tested on a 32-bit operating system as if they were being used on a 64-bit operating system:
If you regularly compile your application with a 64-bit compiler, you may want to disable /Wp64 in your 32-bit compilations, as the 64-bit compiler will detect all issues. For more information about targeting a Windows 64-bit operating system, see.
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see.
Click the C/C++ folder.
Click the General property page.
Modify the Detect 64-bit Portability Issues property.
To set this compiler option programmatically