title: clGetPlatformID error when running OpenCL program.
body: <p>I've been trying to make OpenCL work in my laptop. I followed <a href="http://streamcomputing.eu/blog/2015-03-16/how-to-install-opencl-on-windows/" rel="nofollow">this</a> link for that. I have an NVIDIA GT525M video card and Windows 8.1. 
  The steps I followed were:</p>
  
  <p>Installing the up-to-date NVIDIA drivers.</p>
  
  <p>Installing Visual Studio 2013 Community Edition.</p>
  
  <p>Adding the paths for the linker and the compiler. </p>
  
  <p>and then I tried to run the following code as given in that page:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;CL/cl.h&gt;
  
  int main(void)
  {
      cl_int err;
      cl_uint* numPlatforms=NULL;
  
      err = clGetPlatformIDs(0, NULL,numPlatforms);
      if (CL_SUCCESS == err)
          printf("\nDetected OpenCL platforms: %d", numPlatforms);
      else
          printf("\nError calling clGetPlatformIDs. Error code: %d", err);
      getchar();
      return 0;
  }
  </code></pre>
  
  <p>The code builds successfully but the result I get is:</p>
  
  <pre><code>Error calling clGetPlatformIDs. Error code: -30
  </code></pre>
  
  <p>I get zero as the number of platforms. 
  I've been looking all over the internet for a solution but couldn't find one. Please help. </p>