Quantcast
Channel: Programming – Xinyustudio
Viewing all articles
Browse latest Browse all 284

unresolved external symbol _clReleaseContext@4

$
0
0

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:

image image

image

Finally when I change the program configuration from x86 to x64, and rebuild, it works!

image

Happy coding!


Filed under: Dotnet/C#, Programming

Viewing all articles
Browse latest Browse all 284

Trending Articles