c++ - 构建带有 .v2 扩展名的 Boost 日期/时间 Jamfile

标签 c++ boost linker makefile jam

我正在尝试构建 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/

相关文章:

C++:Boost.MPL 等效于在类型 vector 中的第 i 个类型上调用函数

c++更新 boost 版本问题

macos - Clang 代码覆盖率 - Mac OS X - 链接器错误

c++ - Mavericks 的 g++ 编译问题

c++ - 在 C++ 中使用 Boost 的线程池无法正常工作

c++ - 中间指针的动态对齐(16 字节)

c++ - 由于忘记了源文件,在链接我自己的静态库时检测未解析的符号

ios - "ld: file not found: -Obj-C"尝试将 Cordova 添加为组件 (Cleaver)

c++ - 省略号出现在模板函数的参数声明中

c++ - 在 C++ 中读取不同格式的数据