precompiled header problem

L

Lloyd Dupont

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?
 
C

Carl Daniel [VC++ MVP]

Lloyd said:
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?

http://msdn2.microsoft.com/en-us/library/szfdksca

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top