precompiled header file

Joined
Feb 12, 2008
Messages
108
Reaction score
0
Hello everyone,


Here is my precompiled header settings,

--------------------
Create/Use PCH Through File stdafx.h
PreCompiled Header File .\Debug/client.pch
--------------------

1.

It means all the content before stdafx.h will be precompiled into client.pch? So that each time compiler "assumes" the content before stfafx.h will not be changed. Right?

2.

How will compiler solve this situation?

Code:
// in file foo.c
#include "foo.h"
#include "stdafx.h"

// in file goo.c
#include "goo.h"
#include "stdafx.h"

Compiler will pre-compile foo.h, goo.h and stdafx.h into one client.pch file? Or pre-compile foo.h + stdafx.h into one file, and pre-compile goo.h and stdafx.h into another file?


thanks in advance,
George
 

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

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top