All I am trying to do is add OpenCL to a QT project. My OpenCL files are in
c:/opencl
c:/opencl/include/CL/cl.h
c:/opencl/lib/x86/OpenCL.lib
According to what I read here [qt-project.org] if you have a .lib and a .dll you should link dynamically and I do have a .dll.
c:/opencl/bin/x86/OpenCL.dll
I setup my .pro file:
LIBS += -lOpenCL
LIBS += -LC:/opencl/lib/x86
INCLUDEPATH += C:/opencl/include
I include the header file:
#include <CL/cl.h>
QT intellisense incorporates the header file
!http://i.troll.ws/83b43d1e.png()!
The application builds and runs fine. However, as soon as I try to call any of the functions in the library I get linker errors:
LNK2019: unresolved external symbol clGetPlatformIDs referenced in function main
LNK1120: 1 unresolved externals
↧