How to avoid generated mocing file include "stdafx.h" in VS2013?



  • Is there any way to exclude '#incude "stdafx.h"' in generated Mocing files?

    If I get rid of this line of code in generated Mocing file. Compiling this file works. Rebuilding the project will automatically add this line of code in Mocing file again. How to set VS2013 so that '#incude "stdafx.h"' is not added in mocing file?


  • Moderators

    This setting is derived from project settings. If your project uses precompiled headers then this line will be included in the generated files. If it doesn't compile then your precompiled header setup is messed up. Go to Project -> Properties -> C/C++ -> Precompiled Headers and check your settings or disable precompiled headers if you don't want them.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.