relipmoc / skewer

MIT License
95 stars 17 forks source link

Move -lrt argument to the end of gcc command line #13

Closed wltrimbl closed 8 years ago

wltrimbl commented 9 years ago

Fixes Issue #7, fails to compile on Ubuntu 12.04 precise with the error

undefined reference to `clock_gettime' 

Tested on precise, trusty, and apple gcc version 4.2.1

The -lrt argument (link against real-time-clock library) must be at the end of the g++ command line for some versions of gcc.