Currently trying to compile a simple program given in OpenCL from this website. It will give me the required DeviceInfo
that I need. After simply invoking a make
, I get the error below:
sharan@sharan-X550CC:~/opencl-ex/Ex1$ make
g++ DeviceInfo.cpp -I ../../Cpp_common -lOpenCL -o DeviceInfo
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
Makefile:23: recipe for target 'DeviceInfo' failed
make: *** [DeviceInfo] Error 1
Now I have installed using the instructions from this website. However, I still the get the error above.
How can I solve this error?