I'm getting a lot of LNK2019 errors, after I use the nmake command on VS2015 console:
kmeans.cpp.obj : error LNK2019: unresolved external symbol clGetPlatformIDs referenced in function "int __cdecl initialize(int)" (?initialize@@YAHH@Z) kmeans.cpp.obj : error LNK2019: unresolved external symbol clCreateContextFromType referenced in function "int __cdecl initialize(int)" (?initialize@@YAHH@Z) kmeans.cpp.obj : error LNK2019: unresolved external symbol clReleaseContext referenced in function "int __cdecl shutdown(void)" (?shutdown@@YAHXZ) kmeans.cpp.obj : error LNK2019: unresolved external symbol clGetContextInfo referenced in function "int __cdecl initialize(int)" (?initialize@@YAHH@Z) kmeans.cpp.obj : error LNK2019: unresolved external symbol clCreateCommandQueue referenced in function "int __cdecl initialize(int)" (?initialize@@YAHH@Z) kmeans.cpp.obj : error LNK2019: unresolved external symbol clReleaseCommandQueue referenced in function "int __cdecl shutdown(void)" (?shutdown@@YAHXZ)
I'm on Windows 10 x64 with i7 4790k and GTX 1080 with Nvidia CUDA SDK installed.
Does anyone know how to fix it? Already tried the #pragma with OpenCL Lib but that didnt work.