目前正在尝试从该网站编译 OpenCL 中给出的简单程序。它会给我所需的DeviceInfo
东西。简单地调用 a 后make
,我收到以下错误:
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
Run Code Online (Sandbox Code Playgroud)
现在我已经使用本网站的说明进行了安装。但是,我仍然收到上述错误。
我该如何解决这个错误?
Skype 和 Tixati 等程序可以直接从终端调用,而无需&
在通话结束时添加。为什么 Firefox 不是这种情况。我只是好奇我需要将&
选项添加到哪些程序。