you commented out ending );
you should first get number of platforms with
clGetPlatformIDs(0, NULL, &num_platforms);
cl_int err = clGetPlatfromIDs(
1, // the number of entries that can added to platforms
&platforms, // list of OpenCL found
&num_platforms // the number of OpenCL platforms available);
crap now its working but i didnt change anything???
i hope it doesnt start acting up later
look again at the end of last comment.
// the number of OpenCL platforms available);
sigh a dam ";"