Can an program compiled with opengl also compile with Mesa?

Hi all!

Please help me in this. I have written an opengl program and compiled the same with opengl libraries in linux. now I want the same program to run in Solaris which has mesa. will it compile?


The OpenGL part of the code should compile fine.