I am trying to use a glX function (glXSwapIntervalMESA()
) but the compiler is returning an undefined reference error.
I have tried linking with X11
and Xext
, and glx
, though the last library apparently does not exist. libGL includes some entry points for glx, but I would guess that others (e.g. the one I am trying to use) are platform dependent*.
I cannot find anywhere though which will tell me how to find the names of these platform dependent libraries. For a given system, how do I determine the linker settings in order to use glx?
(*I would guess this because I have seen example linker settings with odd library names.)