rotationdaemon.o: In function `RotationDaemon::rotate(int)': rotationdaemon.cpp:(.text+0x939): undefined reference to `XRRConfigCurrentConfiguration' rotationdaemon.cpp:(.text+0x94a): undefined reference to `XRRConfigCurrentRate' rotationdaemon.cpp:(.text+0x975): undefined reference to `XRRTimes' rotationdaemon.cpp:(.text+0xafb): undefined reference to `XRRSetScreenConfigAndRate' rotationdaemon.cpp:(.text+0xc0b): undefined reference to `XRRGetScreenInfo' collect2: ld returned 1 exit status make: *** [rotatedaemon] Error 1