Problem with compilation simple OpenCL code in VS2017

Hi, I am trying to build program in VS2017. I have problems with cl::vectors. Codel looks like this:

#define __NO_STD_VECTOR
#define __MAX_DEFAULT_VECTOR_SIZE 128

#include <CL/cl.hpp>
#include

int main()
{
cl::vectorcl::Platform platforms;
cl::vectorcl::Device devices;

cl::Platform::get(&platforms);

system(“pause”);
return 1;
}

I get errors as below:

  • Severity Code Description Project File Line Suppression State
    Error C2664 ‘void cl::vectorcl::Device,128::push_back(const T &)’: cannot convert argument 1 from ‘cl_device_id’ to ‘const T &’

  • Severity Code Description Project File Line Suppression State
    Error C2664 ‘void cl::vectorcl::Platform,128::push_back(const T &)’: cannot convert argument 1 from ‘cl_platform_id’ to ‘const T &’

Thank you in advance