[SFML/C++] Linking shader returns GL_FALSE, but no log, and no output on screen

Hello
So I’m follow this: OpenGL Step by Step - OpenGL Development tutorial in order to learn OpenGL. And currently I’m learning to use shaders, however, when I’m linking my shader program, “glGetProgramiv” returns GL_FALSE but there’s no error log from “glGetProgramInfoLog”.

I’m currently programming on Xubuntu (Ubuntu 12.10), and using the “NVIDIA binary Xorg driver, kernel module and VDPAU library from nvidia-current (proprietary, tested)” driver. On a Geforce GTX 560 Ti if that matters. But anyway, below is a link to my code, the first page is my main.cpp file where I run the rendering and gameloop, and in the symGL file i have a little utility class for loading shaders. Any idea what’s the problem?

Code: main.cpp · GitHub
Output: i.imgur.com/QNE67JX.png

Source code of the vertex shader can be found in the output image as well.

however, when I’m linking my shader program, “glGetProgramiv” returns GL_FALSE

glGetProgramiv can “return” many values; what exactly is the line of code that is giving you GL_FALSE?

In sym.cpp, line 51

I solved the problem, when checking for linking errors, I was passing my shader object, and not the program object. Everything is working fine now :slight_smile: