Question concerning MFC file compilation
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
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.
codeka.com - Just click it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement