When tesging an OpenCL program in 64bit windows, Visual Studio 2010, building the program generates below error:
error LNK2019: unresolved external symbol _clReleaseContext@4 referenced in function
error LNK2019: unresolved external symbol _clGetDeviceInfo@20 referenced in function
error LNK2019: unresolved external symbol _clGetContextInfo@20 referenced in function
error LNK2019: unresolved external symbol _clCreateContextFromType@24 referenced
error LNK2019: unresolved external symbol _clGetPlatformIDs@12 referenced in function
Although I have added the necessary Include, Lib directory and the needed lib files to the projects, yet it still does not work, see below:
Finally when I change the program configuration from x86 to x64, and rebuild, it works!
Happy coding!
Filed under: Dotnet/C#, Programming
