我正在尝试构建 Boost date_time 库,以便可以将其链接到我的 Makefile 中。我在“libs/date_time/build”中看到一个孤独的“Jamfile.v2”,如果我输入 jam,我会得到:
Jamfile: No such file or directory
...found 7 target(s)...
我现在不知道该怎么做,在 Boost 文档中找不到有关 date_time 安装的任何信息。
以下是文档中的文字:
# Boost.date_time build and test Jamfile
#
# Based on boost.python Jamfile
#
# To run all tests quietly: jam test
#
# Declares the following targets:
# 1. libboost_date_time, a static link library to be linked with all
# Boost.date_time modules
#
project boost/date_time
: requirements
<define>DATE_TIME_INLINE
<link>shared:<define>BOOST_ALL_DYN_LINK=1
<link>static:<define>BOOST_DATE_TIME_STATIC_LINK
: usage-requirements
<define>DATE_TIME_INLINE
<link>shared:<define>BOOST_DATE_TIME_DYN_LINK=1
: source-location ../src
;
# Base names of the source files for libboost_date_time
CPP_SOURCES = greg_month greg_weekday date_generators ;
lib boost_date_time : gregorian/$(CPP_SOURCES).cpp ;
boost-install boost_date_time ;
谢谢,乔