[Boost-bugs] [Boost C++ Libraries] #5899: Boost Chrono cannot find references.

Subject: [Boost-bugs] [Boost C++ Libraries] #5899: Boost Chrono cannot find references.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-14 11:26:52


#5899: Boost Chrono cannot find references.
------------------------------+---------------------------------------------
 Reporter: boost@… | Owner:
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: chrono link |
------------------------------+---------------------------------------------
 I compiled 1.47.0 today as per the documentation and this is what I get
 when I am trying to compile the chrono example run_timer_example.cpp:

 With icc:

 {{{
 $ icc run_timer_example.cpp -I/home/yann/src/boost_1_47_0
 -L/home/yann/src/boost_1_47_0/stage/lib -lboost_system -lboost_chrono
 /tmp/icciMiW90.o: In function `main':
 run_timer_example.cpp:(.text+0x33): undefined reference to
 `boost::chrono::run_timer::run_timer(boost::system::error_code&)'
 run_timer_example.cpp:(.text+0xa5): undefined reference to
 `boost::chrono::run_timer::report(boost::system::error_code&)'
 }}}

 with gcc:

 {{{
 $ gcc run_timer_example.cpp -I/home/yann/src/boost_1_47_0
 -L/home/yann/src/boost_1_47_0/stage/lib -lboost_system -lboost_chrono
 /tmp/ccW6yHqX.o: In function `main':
 run_timer_example.cpp:(.text+0x16): undefined reference to
 `boost::chrono::run_timer::run_timer(boost::system::error_code&)'
 /tmp/ccW6yHqX.o: In function `boost::chrono::run_timer::~run_timer()':
 run_timer_example.cpp:(.text._ZN5boost6chrono9run_timerD2Ev[_ZN5boost6chrono9run_timerD5Ev]+0x3b):
 undefined reference to
 `boost::chrono::run_timer::report(boost::system::error_code&)'
 collect2: ld returned 1 exit status
 }}}

 I do have the library here:

 {{{
 $ ls -l *chrono*
 116K -rw-r--r-- 1 yann yann 116K Sep 14 11:30 libboost_chrono.a
    0 lrwxrwxrwx 1 yann yann 25 Sep 14 11:30 libboost_chrono.so ->
 libboost_chrono.so.1.47.0*
  44K -rwxr-xr-x 1 yann yann 41K Sep 14 11:30 libboost_chrono.so.1.47.0*
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5899>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC