VSAddin bug with precompiled headers?
I'm getting a hard time using precompiled headers in my Qt+VS2008 project.
I'm using the following directives, as usual:
CONFIG += precompile_header
PRECOMPILED_HEADER = stdafx.h
HEADERS += stdafx.h
The problem is that every MOC file generated is including
#include "stdafx.h"
Of course this file cannot be found since MOC is generating the files on the /debug and /release folders where stdafx.h does not exist.
Anyone hit the same problem?
Re: VSAddin bug with precompiled headers?
Quote:
Originally Posted by
indiocolifa
Of course this file cannot be found since MOC is generating the files on the /debug and /release folders where stdafx.h does not exist.
Whats wrong with adding the directory where stdafx.h DOES exist to your include search paths?
Re: VSAddin bug with precompiled headers?
Quote:
Originally Posted by
fatjuicymole
Whats wrong with adding the directory where stdafx.h DOES exist to your include search paths?
Nothing, but this is not documented anywhere.
Re: VSAddin bug with precompiled headers?
Did you fix it? I have the same problem now... Thx