Please use [code][/code] tags around source code.
You are programming in C/C++ and "uniform" is not a keyword in those languages, hence the compiler complains. It is a keyword in GLSL, but code written in GLSL is stored in strings (or loaded at runtime from text files) and passed to the shader compiler (at runtime!) that is part of your OpenGL implementation (aka. the graphics driver).