NVIDIA has a Cg toolkit for shader compilation.
link to Cg toolkit

i want to compile a shader code from my Qt application and get the output text back.
its kind of a vague question, but how could i do that?