Hi,
I am trying to build a Open-Cl example code through MVSC compiler through command line.
Following is the command line :
cl /Feexample.exe -I"C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\OpenCl"\common\inc example.c /link /LIBPATH:“C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\OpenCl”\common\lib\x64 OpenCl.lib
Compilation Issues :
example.c
Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
/out:example.exe
“/LIBPATH:C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\OpenCl\common\lib\x64”
OpenCl.lib
example.obj
example.obj : error LNK2019: unresolved external symbol _clReleaseMemObject@4 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clReleaseContext@4 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clReleaseCommandQueue@4 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clReleaseProgram@4 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clReleaseKernel@4 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clEnqueueReadBuffer@36 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clEnqueueNDRangeKernel@36 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clSetKernelArg@16 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clCreateKernel@12 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clBuildProgram@24 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clCreateProgramWithSource@20 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clCreateBuffer@24 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clCreateCommandQueue@20 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clGetContextInfo@20 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clCreateContextFromType@24 referenced in function _main
example.exe : fatal error LNK1120: 15 unresolved externals
Thanks for your help.
Thanks
Gudge