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

Joel j.o.e.l.public at gmail.com
Fri Aug 10 04:28:33 UTC 2012


Package: opencl-headers
Version: 1.2-2012.04.18a-1

t.cc:
--------------------
#include <CL/cl.hpp>

int main()
{}

-------------------
g++ -L/usr/lib/x86_64-linux-gnu/ -lOpenCL t.cc

produces:
---------------------------
In file included from t.cc:1:0:
/usr/include/CL/cl.hpp: In function ‘cl_int cl::UnloadCompiler()’:
/usr/include/CL/cl.hpp:1606:12: error: ‘::clUnloadCompiler’ has not
been declared
/usr/include/CL/cl.hpp: In constructor ‘cl::Image2D::Image2D(const
cl::Context&, cl_mem_flags, cl::ImageFormat, size_t, size_t, size_t,
void*, cl_int*)’:
/usr/include/CL/cl.hpp:2365:19: error: ‘::clCreateImage2D’ has not been declared
/usr/include/CL/cl.hpp: In constructor ‘cl::Image2DGL::Image2DGL(const
cl::Context&, cl_mem_flags, GLenum, GLint, GLuint, cl_int*)’:
/usr/include/CL/cl.hpp:2410:19: error: ‘::clCreateFromGLTexture2D’ has
not been declared
/usr/include/CL/cl.hpp: In constructor ‘cl::Image3D::Image3D(const
cl::Context&, cl_mem_flags, cl::ImageFormat, size_t, size_t, size_t,
size_t, size_t, void*, cl_int*)’:
/usr/include/CL/cl.hpp:2464:19: error: ‘::clCreateImage3D’ has not been declared
/usr/include/CL/cl.hpp: In constructor ‘cl::Image3DGL::Image3DGL(const
cl::Context&, cl_mem_flags, GLenum, GLint, GLuint, cl_int*)’:
/usr/include/CL/cl.hpp:2510:19: error: ‘::clCreateFromGLTexture3D’ has
not been declared
/usr/include/CL/cl.hpp: In member function ‘cl_int
cl::CommandQueue::enqueueMarker(cl::Event*) const’:
/usr/include/CL/cl.hpp:3745:13: error: ‘::clEnqueueMarker’ has not been declared
/usr/include/CL/cl.hpp: In member function ‘cl_int
cl::CommandQueue::enqueueWaitForEvents(const std::vector<cl::Event>&)
const’:
/usr/include/CL/cl.hpp:3752:13: error: ‘::clEnqueueWaitForEvents’ has
not been declared
/usr/include/CL/cl.hpp: In member function ‘cl_int
cl::CommandQueue::enqueueBarrier() const’:
/usr/include/CL/cl.hpp:3867:13: error: ‘::clEnqueueBarrier’ has not
been declared
-----------------------------------
This is on testing with g++ (Debian 4.7.1-2) 4.7.1



More information about the pkg-nvidia-devel mailing list