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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Sharing precompiled header in VC+ 2005

Sharing precompiled header in VC+ 2005

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 2 Posters 0 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.
  • T Offline
    T Offline
    topus
    wrote on last edited by
    #1

    I try to share .pch (precompiled header files) across my library (more than 50) but i failed. Using VC+ 6.0 is possible to share the .pch file reducing compilation time but when i try this in VC+2005 i ave found a lot of problems... Can anyone help me? Tanks and sorry for the poor english...

    D 1 Reply Last reply
    0
    • T topus

      I try to share .pch (precompiled header files) across my library (more than 50) but i failed. Using VC+ 6.0 is possible to share the .pch file reducing compilation time but when i try this in VC+2005 i ave found a lot of problems... Can anyone help me? Tanks and sorry for the poor english...

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      topus wrote:

      ...but i failed.

      What failed?

      topus wrote:

      Using VC+ 6.0 is possible to share the .pch file reducing compilation time...

      I suppose you could in theory, assuming the files comprising each project were the same, but are you sure you want to? Why not just let the .pch file get built once for each project and be done with it? Your apt to spend more time trying to 'share' the file than you would just building it for each project.


      "The largest fire starts but with the smallest spark." - David Crow

      T 1 Reply Last reply
      0
      • D David Crow

        topus wrote:

        ...but i failed.

        What failed?

        topus wrote:

        Using VC+ 6.0 is possible to share the .pch file reducing compilation time...

        I suppose you could in theory, assuming the files comprising each project were the same, but are you sure you want to? Why not just let the .pch file get built once for each project and be done with it? Your apt to spend more time trying to 'share' the file than you would just building it for each project.


        "The largest fire starts but with the smallest spark." - David Crow

        T Offline
        T Offline
        topus
        wrote on last edited by
        #3

        Lock at this: "Rebuild using shared precompiled headers doesn't work" http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=105308&SiteId=1

        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