Does CG 3.1 work with OpenGL 3.2 core?

I’ve been trying very hard to get OpenGL 3.2 to work with CG 3.1 but the shaders simply don’t do anything. Is CG 3.1 compatible with OpenGL 3.2? Is there anything special I have to do?

Here is my code: #include <stdio.h>#include <stdlib.h>#include <vector>#include <string># - Pastebin.com

Cg doesn’t support OpenGL 3.0 Core context and above.
You can get the compiled code from Cg API, and use directly GLSL Shaders.It is working very fine!