Jump to content
  • Advertisement

Archived

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

Zipster

Question concerning MFC file compilation

This topic is 6074 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!