stdafx not found - Qt and Visual Studio
-
I would like to ask if someone experienced a similar issue when working with Qt on Visual Studio 22
If I create any file on a different folder than thestdafx.hfolder, when I compile, VS complains about"you forget to add "#include "stdafx.h"
I wonder if it's a Visual Studio bug or its me missing something.
Here a quickly example:

-
I would like to ask if someone experienced a similar issue when working with Qt on Visual Studio 22
If I create any file on a different folder than thestdafx.hfolder, when I compile, VS complains about"you forget to add "#include "stdafx.h"
I wonder if it's a Visual Studio bug or its me missing something.
Here a quickly example:

I have solved it by following an answer found here:
https://stackoverflow.com/questions/12434123/how-to-include-the-stdafx-h-from-the-root-directoryAdding
$(ProjectDir)to properties, it now compiles correctly. -
R Rua3n has marked this topic as solved on