我正在尝试构建 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 ;
谢谢, 乔
最佳答案
没关系,我刚找到文档: http://www.boost.org/doc/libs/1_52_0/more/getting_started/unix-variants.html
显然不需要为日期时间构建任何东西。 仍然有一些问题,但这将针对不同的问题。
乔
关于c++ - 构建带有 .v2 扩展名的 Boost 日期/时间 Jamfile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14043770/