Hi,
Has anyone tried to use freeocl yet? I got errors when compiling its header:
Please help.
Has anyone tried to use freeocl yet? I got errors when compiling its header:
Code:
#include <CL/cl.hpp>
Code:
$ gcc48 cldemo.cpp -lstdc++
/tmp//cctiUYnu.o: In function `cl::detail::ReferenceHandler<_cl_context*>::release(_cl_context*)':
cldemo.cpp: (.text._ZN2cl6detail16ReferenceHandlerIP11_cl_contextE7releaseES3_[_ZN2cl6detail16ReferenceHandlerIP11_cl_contextE7releaseES3_]+0x14): undefined reference to `clReleaseContext'
/tmp//cctiUYnu.o: In function `cl::detail::ReferenceHandler<_cl_command_queue*>::release(_cl_command_queue*)':
cldemo.cpp: (.text._ZN2cl6detail16ReferenceHandlerIP17_cl_command_queueE7releaseES3_[_ZN2cl6detail16ReferenceHandlerIP17_cl_command_queueE7releaseES3_]+0x14): undefined reference to `clReleaseCommandQueue'
collect2: error: ld returned 1 exit status