SyntaxFix
Write A Post
Hire A Developer
Questions
Add -lrt to the end of g++ command line. This links in the librt.so "Real Time" shared library.
-lrt