
10 Nov
2008
10 Nov
'08
10:39 p.m.
Beman Dawes wrote:
I've got a boostified version of the C++0x <chrono> header working on Windows, but need help for the Linux implementation.
I wrote a test program (see below). It compiles OK but gets a link failure:
/tmp/ccmT80bD.o: In function `clk()': test.cpp:(.text+0x192): undefined reference to `clock_gettime' collect2: ld returned 1 exit status
What am I doing wrong? The command I'm using is simply "g++ test.cpp". Ubuntu 8.04 with all updates applied.
You need to link against librt. Sebastian