The boost::chrono documentation says
When BOOST_CHRONO_HEADER_ONLY is defined the lib is header-only.
Even with this defined, I’m getting linker error:
1>LINK : fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-gd-1_48.lib'
Is this a documentation bug? Or does chrono really support header only usage?
The last version of Boost says
”
Boost.Chrono can be configured as a header-only library defining BOOST_CHRONO_HEADER_ONLY. However Boost.Chrono depends on the non header-only library Boost.System, so that you will need to link with boost_system.
Boost.System has un undocumented feature (use of macro BOOST_ERROR_CODE_HEADER_ONLY) to make it header only, but it is buggy (see #7347 duplicate symbol while BOOST_ERROR_CODE_HEADER_ONLY is defined)
“
I think the bug has been fixed at least in trunk.