Problem:
Intel(R) C++ Compiler 15.0 Beta Update 2 is shipped with gfx_samples.zip under the Samples folder. This zip file hosts the code samples which demonstrate compute offload to processor graphics feature. The zip file ships VS2010 solution. But when this VS2010 solution is opened using VS2012, then the build fails with the following error "cannot open source file "windows.h"".
Fix for the problem:
Follow the below 2 steps to fix this problem:
- Right click on the project -> Properties -> Configuration Properties -> VC++ Directories -> Include Directories -> select <inherit from parent or project defaults>
- Right click on the project -> Properties -> Configuration Properties -> C/C++ -> Additonal Include Directories -> add “..\..\src”
Then rebuilding the solution will resolve this issue. This problem in gfx_samples.zip is a known issue and will be fixed in Intel(R) C++ Compiler 15.0 Update 1.
This article applies to:
Products: Intel® System Studio, Intel® INDE
Host OS/Platform: Windows (IA-32 or Intel® 64); Linux (Intel® 64)
Target OS/platform: Windows (IA-32 or Intel® 64); Ubuntu 12.04 (Intel® 64)