There are compile errors on Solaris 10/Sparc with gcc/4.3.3 because of a missing define (for non-Windows platforms). The attached patch corrects the problem here. But maybe it would be better to use the "FGAPIENTRY" define instead of "APIENTRY"?
Besides that, I just found that this demo does not work on Solaris/Sparc:
freeglut (./freeglut-2.6.0/progs/demos/smooth_opengl3/.libs/smooth_opengl3): glXCreateContextAttribsARB not found
This is probably because this GL API does not exist in the Solaris/Sparc header files. It is however present on Linux. Don't know whether this observation will help in any way...
Diederick C. Niehorster
We now have the following code in there:
which takes care of the problem i hope?
Would you be willing to test the 2.8 release, or better yet, the current trunk? In current trunk we have switched to CMake, which might help Solaris support. Any patches are very welcome, though if its only a demo failing and significant work is required to fix it, it might not be worth it.. Does solaris have OpenGL 3 support at all? Otherwise this demo is never going to work...