I was doing a dummy implementation and I find out that the definition of CL_INVALID_DEVICE_LIST is missing in the .h file,
it is supposed to be returned by clCreateContext if the list of devices...