I am pretty new to Ubuntu, but I can\'t seem to get this to work. It works fine on my school computers and I don\'t know what I am not doing. I have checked usr/in
Add -lrt to the end of g++ command line. This links in the librt.so "Real Time" shared library.
-lrt