RSS

unresolved external symbol _clReleaseContext@4

05 Feb

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!

Advertisements
 
5 Comments

Posted by on February 5, 2012 in Dotnet/C#, Programming

 

5 responses to “unresolved external symbol _clReleaseContext@4

  1. alu

    February 11, 2013 at 6:31 am

    thank you so much

     
  2. heba

    June 16, 2013 at 12:40 am

    thank so much it help me

     
  3. phani

    August 29, 2013 at 10:48 am

    Thank a lot !!!

     
  4. derainWu

    October 12, 2013 at 8:45 pm

    thank you so much. It really helps a lot!

     
  5. aa

    June 4, 2014 at 1:45 am

    Thank you

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: