pew-compiled header
- Precompiled Header Files
- C/C++ Building Reference
- Compiling a C/C++ project
- Compiler Options
- Compiler options listed alphabetically
- Compiler options listed by category
- Linker options
- Linking
- Configure C++ projects for 64-bit, x64 targets
- Open Folder support for C++ build systems in Visual Studio
- Use of "stdafx.h"
- Precompiled headers
- How to include the stdafx.h from the root directory?
- Create stdafx.h and stdafx.cpp in the root folder of the project.
- Go to project properties -> precompiled headers. Change to "use".
- Go to stdafx.cpp, right-click properties -> precompiled headers. Change to "create".
- Go to project properties -> advanced; change "Force include files" to stdafx.h;%(ForcedIncludeFiles)
- StdAfx.h
- Projects in Visual C++ 2010 – Part 3: Precompiled Headers
- CCurveDlg - Curve Interpolation
- The Ultimate (DLL) Header File
- 0.7 — Compiling your first program
- What is “stdafx.h” used for in Visual Studio?
You can set compiler options for each project in its Visual Studio Property Pages dialog box. In the left pane, select Configuration Properties, C/C++ and then choose the compiler option category. The topic for each compiler option describes how it can be set and where it is found in the development environment. See MSVC Compiler Options for a complete list.
Linker options can be set inside or outside of Visual Studio. Within Visual Studio, you access linker options by right-clicking on a project node in Solution Explorer and choosing Properties to display the property pages. Choose Linker in the left pane to expand the node and see all the options
This section contains topics about targeting 64-bit x64 hardware with the Visual C++ build tools. a good gateway to more links.
It's interesting that the trick that I use isn't in the answers:
Don't change any CPP file; keep your header files as they are. Build as-is.
No typing, no RSI, no hassle with include paths, no other pain and misery. And the beauty is that it will still work when you move your solution to another platform. Awesome.
No comments:
Post a Comment