Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. I can't shut off precompiled headers in Visual Studio 2015

I can't shut off precompiled headers in Visual Studio 2015

Scheduled Pinned Locked Moved Visual Studio
csharpc++visual-studiohelpquestion
6 Posts 2 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 12941702
    wrote on last edited by
    #1

    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?

    L 1 Reply Last reply
    0
    • U User 12941702

      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?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You need to clean the project and then remove StdAfx.cpp from the source tree, and rebuild.

      U 1 Reply Last reply
      0
      • L Lost User

        You need to clean the project and then remove StdAfx.cpp from the source tree, and rebuild.

        U Offline
        U Offline
        User 12941702
        wrote on last edited by
        #3

        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.

        L 1 Reply Last reply
        0
        • U User 12941702

          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.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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.

          U 1 Reply Last reply
          0
          • L Lost User

            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.

            U Offline
            U Offline
            User 12941702
            wrote on last edited by
            #5

            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.

            L 1 Reply Last reply
            0
            • U User 12941702

              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.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              I don't know what you are doing but I have done this many times (including just now in VS2017) and it works correctly.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups