Archived

This topic is now archived and is closed to further replies.

Zipster

Question concerning MFC file compilation

Recommended Posts

Zipster    2365
Whenever I compile an MFC project that AppWizard created, StdAfx.cpp is always the first file compiled, no matter where it is on the project list. The rest of the files are compiled based on their position in the list! Now, I already know exactly why the compiler has to do this, but I want to know where it knows to do this. Is there a command-line option that specifies a file that should always be compiled first? Or maybe something in Project Settings I''m overlooking? I was looking through the makefile and couldn''t make much sense out of anything

Share this post


Link to post
Share on other sites
Dean Harding    546
It always gets compiled first because that''s file that generates the precompiled header. Under setting for that file, you''ll see it''s precomiled page is set to "Generate Precompiled Header through file: ..." (or something). That''s why it''s compiled first, no other reason.


codeka.com - Just click it.

Share this post


Link to post
Share on other sites