[Boost-users] [timer] Error linking boost::chrono::steady_clock::now

1,621 views
Skip to first unread message

Michael Powell

unread,
Apr 16, 2013, 2:12:57 PM4/16/13
to boost...@lists.boost.org
Hello,

I get the following linker error.

Description    Resource    Path    Location    Type
undefined reference to `boost::chrono::steady_clock::now()'    detector        line 0    C/C++ Problem

I am using Boost 1.53. A little unclear what the docs are talking about. If I can go header only, and if it is advantageous to do so, I'd like to.

http://www.boost.org/doc/libs/1_53_0/doc/html/chrono/users_guide.html#chrono.users_guide.getting_started.install.building_boost_chrono_

However, not sure what else we're talking about here, when it talks about building boost with buggy header only support (?).

Regards,

Michael Powell

Michael Powell

unread,
Apr 16, 2013, 2:15:12 PM4/16/13
to boost...@lists.boost.org
Should also mention, I am targeting ArchLinux ARM, not Windows FWIW.

Michael Powell

unread,
Apr 16, 2013, 2:32:48 PM4/16/13
to boost...@lists.boost.org
On Tue, Apr 16, 2013 at 1:15 PM, Michael Powell <mwpow...@gmail.com> wrote:
Should also mention, I am targeting ArchLinux ARM, not Windows FWIW.

Or, is there a less-high-res option available? ptime-based for instance?

The solution I'm looking for does not need to be super-high-res. With microsecond precision I would guess, millisecond accuracy. Not nanosecond by any means.

Thank you...

Vicente J. Botet Escriba

unread,
Apr 16, 2013, 4:04:17 PM4/16/13
to boost...@lists.boost.org
Le 16/04/13 20:12, Michael Powell a écrit :
Hi,

it is unclear for me what is unclear for you. Could you clarify?

Best,
Vicente
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Hideki Kato

unread,
Apr 16, 2013, 7:28:52 PM4/16/13
to boost...@lists.boost.org
You have to link libboost-timer.a and libboost-chorono.a, I guess.

Hideki

Michael Powell: <CAMEoF_EmaSfyLM0BXGCNc+0e...@mail.gmail.com>:
>---- inline file
>_______________________________________________
>Boost-users mailing list
>Boost...@lists.boost.org
>http://lists.boost.org/mailman/listinfo.cgi/boost-users
--
Hideki Kato <mailto:hideki...@ybb.ne.jp>
Reply all
Reply to author
Forward
0 new messages