title: Can't convert GLuint to GLuint()
body: <p>I'm trying to make a opengl program to display a point on the screen but i'm getting this error while compiling.</p>
  <pre><code>cannot convert ‘GLuint {aka unsigned int}’ to ‘GLuint() {aka unsigned int()}’ in assignment
  </code></pre>
  <pre><code>GLuint renderingProgram(); //global variable *Edit, this variable doesn't have any &quot;=&quot;
  
  void init(GLFWwindow* window)
  {
      renderingProgram = createShaderProgram();
      glGenVertexArrays(numVAOs, vao);
      glBindVertexArray(vao[0]); 
  }
  
  </code></pre>
  <p>This is the only error I'm getting and I don't really know how I could fix this as I'm new to OpenGL :)</p>
  <p>Edit</p>
  <pre><code>GLuint createShaderProgram()
  {
      const char *vshaderSource =
          &quot;#version 330    \n&quot;
          &quot;void main(void) \n&quot;
          &quot;{ gl_Position = vec4(0.0,0.0,0.0,1.0); }&quot;;
      const char *fshaderSource =
          &quot;#version 330    \n&quot;
          &quot;out vec4 color; \n&quot;
          &quot;void main(void) \n&quot;
          &quot;{ color = vec4(0.0,0.0,1.0,1.0); }&quot;;
      
      GLuint vShader = glCreateShader(GL_VERTEX_SHADER);
      GLuint fShader = glCreateShader(GL_FRAGMENT_SHADER);
      
      glShaderSource(vShader, 1, &amp;vshaderSource, NULL);
      glShaderSource(fShader, 1, &amp;fshaderSource, NULL);
      glCompileShader(vShader);
      glCompileShader(fShader);
      
      GLuint vfProgram = glCreateProgram();
      glAttachShader(vfProgram, vShader);
      glAttachShader(vfProgram, fShader);
      glLinkProgram(vfProgram);
      
      return vfProgram;
  }
  
  </code></pre>