Peterp

Unable to compile simple OpenCL program on Windows7/64Bit with VC++2010

Discussion created by Peterp on May 26, 2010
Latest reply on May 26, 2010 by dravisher

Hi,

I'm unable to compile a simple OpenCL program
with VC++2010. The pathes to the include and
lib dirs are set correctly and i added OpenCL.lib.
I use cl.hpp.

I get this message:

1>main.obj : error LNK2001: unresolved external symbol _clGetContextInfo@20
1>main.obj : error LNK2001: unresolved external symbol _clGetPlatformIDs@12
1>main.obj : error LNK2001: unresolved external symbol _clCreateContextFromType@24
1>main.obj : error LNK2001: unresolved external symbol _clGetPlatformInfo@20
1>main.obj : error LNK2001: unresolved external symbol _clReleaseContext@4

Outcomes