Visual Studio compiles into Debug, Release does not work ("Can not open include file")

We have an OpenCL application that uses the Nvidia OpenCL library; it is added to the project property Additional Include Directoriesusing the environment variable NVSKCOMPUTE_ROOT:$(NVSDKCOMPUTE_ROOT)\OpenCL\common\inc

When I compile the program in debug mode, everything works fine; The program compiles without errors and starts.

When I compile a program in Release mode, I sometimes get the following error:

Error 5 error C1083: Cannot open include file: 'CL/opencl.h': No such file or directory (cl.hpp)

We have already checked the release configuration ( Additional Include Directoriesetc.) and it is identical to Debug (except for the optimization flags); In addition, this error occurs only on some systems , and it compiles fine on others; we use exactly the same project files (and the same afaik launch configurations), and we cannot understand what causes the problem ...

Any ideas or pointers?

+3
source share
1 answer

What are the differences in the systems? Does this ever happen to other projects? Does this happen with other files? You say this only happens on some systems, how often?

, , , re? ( ), , ?

0

All Articles