Question concerning MFC file compilation

Started by
1 comment, last by Zipster 22 years, 5 months ago
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
Advertisement
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.
Yes, I just happened to stroll along into the file settings and find it. Thanks for the reply.

This topic is closed to new replies.

Advertisement