I can't shut off precompiled headers in Visual Studio 2015
-
I have tried unchecked the Use precomiled header box when I make a project, and I have also gone in to C++ settings and told it No Precompiled Headers. But the software still makes the header anyway. Bug? Or what else do I need to do to disable it?
-
I have tried unchecked the Use precomiled header box when I make a project, and I have also gone in to C++ settings and told it No Precompiled Headers. But the software still makes the header anyway. Bug? Or what else do I need to do to disable it?
-
You need to clean the project and then remove StdAfx.cpp from the source tree, and rebuild.
So there is no way to disable this permanently. I'm not going to do this each and every time. Microsoft is always changing Visual Studio. For no reason. The best version was the 2010 version. It also takes damn near hours to install the newer versions.
-
So there is no way to disable this permanently. I'm not going to do this each and every time. Microsoft is always changing Visual Studio. For no reason. The best version was the 2010 version. It also takes damn near hours to install the newer versions.
Disable what? If you do not want precompiled headers then you need to set the option when you create a project. Alternatively create a template of your own that does not include it, see my article: Visual C++ Express, Custom Wizard[^] - it's a bit old now but I have used it as a basis for creating a wizard in VS2017. As to your other complaints, I seem to have had a different experience; VS2017 installed fairly quickly and without incident.
-
Disable what? If you do not want precompiled headers then you need to set the option when you create a project. Alternatively create a template of your own that does not include it, see my article: Visual C++ Express, Custom Wizard[^] - it's a bit old now but I have used it as a basis for creating a wizard in VS2017. As to your other complaints, I seem to have had a different experience; VS2017 installed fairly quickly and without incident.
It does not matter if I tell Visual Studio to not use them. The software still makes them. That is why I started this post. It still makes the header in my file.
-
It does not matter if I tell Visual Studio to not use them. The software still makes them. That is why I started this post. It still makes the header in my file.