linking the opencl library in visual studio

linking the opencl library in visual studio

Hi guys,

Can you tell me how to link the library files in visual studio as I am getting the LNK error : unresolved externals _someFuncName;

I did try to link it as project property->configurations->linker->input additional library and typed the complete path of the OpenCL64.lib

But still it is gibing the same error.......




publicaciones de 4 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.
Best Reply

The name of the library to link with is OpenCL.lib, not OpenCL64.lib.
So specify just OpenCL.lib in Linker->Input->Additional dependencies. And specify a path to its folder using INTELOCLSDKROOT environment variable in Linker->General->Additional library directories:
or $(INTELOCLSDKROOT)\lib\x86 in 32-bit configuration.


@ yuri,

thanks boss for helping a lot.... One last time if you can help me with linux library set up, I will get going with my project.
I am getting this particular error every time and with every sdk in linux
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status



Just dont know whats wrong with my installation???


You probably have to update your LIB path to include the path to OpenCL library.


Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya