3 Replies Latest reply on May 26, 2010 4:56 PM by dravisher

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

    Peterp

      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