Is there a possibility to include that file automatically using the Visual C++ 2012?
You can use /FI
to force an include of a file that's not included in the project's source files. I use it when porting libraries to Windows RT and Windows Phone. For example:
/FI SDKDDKVer.h /FI winapifamily.h
is effectively:
#include <SDKDDKVer.h>
#include <winapifamily.h>
Below is a patch I have for OpenSSL that forces some Windows Phone and Windows RT includes.
There's a property page for the option. You can find it at Project->Configuration Preporties->C/C++->Advanced->Force Include File
(thanks PolGraphic and Retired Ninja).
The list of options for cl.exe
is available at Compiler Options Listed Alphabetically. /I
will allow you to specify a header path, like GCC's -I
.