Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

error : cannot open source file "windows.h" in gfx_samples.zip shipped with Intel(R) C++ Compiler 15.0 Beta Update 2 when built with VS2012 IDE

$
0
0

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:

  1. Right click on the project -> Properties -> Configuration Properties -> VC++ Directories -> Include Directories -> select <inherit from parent or project defaults>
  2. 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)


Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>