precompiled header problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lloyd Dupont

    precompiled header problem

    I'm using VS.NET 2005 beta 2.
    I have problem compiling project (it says: 'cannot find file StdAfx.h" which
    is right in the middle of my project).
    The 1st time I create a new project and it fixes the problem.
    Now I have plenty of file I copy the whole project from one computer to an
    other and I ran into the same problem.
    Except I can't botyer recreate the projec now... (so many file to transfer..
    sigh..), so I change my project properties to: don't use precompiled header.
    It compiles & runs just as fine.

    Now I wonder:
    - what is this precompiled header option for?
    - why does it break down some times?

    --
    There are 10 kinds of people in this world. Those who understand binary and
    those who don't.


  • Carl Daniel [VC++ MVP]

    #2
    Re: precompiled header problem

    Lloyd Dupont wrote:[color=blue]
    > I'm using VS.NET 2005 beta 2.
    > I have problem compiling project (it says: 'cannot find file
    > StdAfx.h" which is right in the middle of my project).
    > The 1st time I create a new project and it fixes the problem.
    > Now I have plenty of file I copy the whole project from one computer
    > to an other and I ran into the same problem.
    > Except I can't botyer recreate the projec now... (so many file to
    > transfer.. sigh..), so I change my project properties to: don't use
    > precompiled header. It compiles & runs just as fine.
    >
    > Now I wonder:
    > - what is this precompiled header option for?
    > - why does it break down some times?[/color]



    Read that page and all the pages it links to and you'll be much better
    equipped to understand when/how/why pre-compiled headers may cause you
    problems.

    -cd




    Comment

    • Lloyd Dupont

      #3
      Re: precompiled header problem

      > http://msdn2.microsoft.com/en-us/library/szfdksca[color=blue]
      >
      > Read that page and all the pages it links to and you'll be much better
      > equipped to understand when/how/why pre-compiled headers may cause you
      > problems.
      >[/color]
      thanks/for/that ;-)
      cheers!


      Comment

      Working...