-
Notifications
You must be signed in to change notification settings - Fork 273
Open
Description
编译生成只是cl头文件和一些.cmake,没有生成libopencl.so的库。在调用这个的时候,报了
/usr/bin/ld: main.cpp:(.text+0x350): undefined reference to `clGetDeviceIDs'
/usr/bin/ld: main.cpp:(.text+0x378): undefined reference to `clCreateContext'
/usr/bin/ld: main.cpp:(.text+0x398): undefined reference to `clCreateCommandQueue'
/usr/bin/ld: main.cpp:(.text+0x3bc): undefined reference to `clCreateProgramWithSource'
/usr/bin/ld: main.cpp:(.text+0x3fc): undefined reference to `clBuildProgram'
/usr/bin/ld: main.cpp:(.text+0x430): undefined reference to `clGetProgramBuildInfo'
/usr/bin/ld: main.cpp:(.text+0x460): undefined reference to `clGetProgramBuildInfo'
/usr/bin/ld: main.cpp:(.text+0x498): undefined reference to `clCreateKernel'
/usr/bin/ld: main.cpp:(.text+0x4c0): undefined reference to `clCreateBuffer'
/usr/bin/ld: main.cpp:(.text+0x4e8): undefined reference to `clCreateBuffer'
那么应该怎么处理
Metadata
Metadata
Assignees
Labels
No labels