|
Boost : |
Subject: Re: [boost] [chrono] Help need for Linux implementation
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2008-11-10 17:39:05
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk