小编SDG*_*SDG的帖子

/usr/bin/ld: 找不到 -lOpenCL

目前正在尝试从网站编译 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)

现在我已经使用网站的说明进行了安装。但是,我仍然收到上述错误。

我该如何解决这个错误?

command-line nvidia compiling opencl libraries

10
推荐指数
1
解决办法
13万
查看次数

为什么有些程序在从终端调用时返回,而其他程序仅在包含“&”时返回

Skype 和 Tixati 等程序可以直接从终端调用,而无需&在通话结束时添加。为什么 Firefox 不是这种情况。我只是好奇我需要将&选项添加到哪些程序。

command-line

5
推荐指数
2
解决办法
783
查看次数

标签 统计

command-line ×2

compiling ×1

libraries ×1

nvidia ×1

opencl ×1