Bug#684444: including CL/cl.hpp produces compile errors

Andreas Beckmann debian at abeckmann.de
Tue Sep 4 20:01:19 UTC 2012


Hi Vincent,

please check whether CL_USE_DEPRECATED_OPENCL_1_1_APIS is already
defined instead of redefining it:

$ g++ -I . -c a.cpp -W -Wall -DCL_USE_DEPRECATED_OPENCL_1_1_APIS
In file included from a.cpp:1:0:
./CL/cl.hpp:152:0: warning: "CL_USE_DEPRECATED_OPENCL_1_1_APIS"
redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
In file included from /usr/include/CL/opencl.h:43:0,
                 from ./CL/cl.hpp:175,
                 from a.cpp:1:
/usr/include/CL/cl_gl.h:107:2: warning: #warning
CL_USE_DEPRECATED_OPENCL_1_1_APIS is defined. These APIs are unsupported
and untested in OpenCL 1.2! [-Wcpp]


Andreas



More information about the pkg-nvidia-devel mailing list