我在我的项目中使用 boost build,现在我想使用 boost date_time。我用谷歌搜索并发现它应该(可能)以这种方式使用:
exe test : test.cpp /boost/date_time//date_time ;
但后来我收到这条消息:
error: Unable to find file or target named
error: '/boost/date_time//date_time'
error: referred from project at
error: '.'
(当我-lboost_date_time
手动用作 gcc 标志时,它可以正常工作)我认为必须将库 oly 添加到 site-config.jam,所以我尝试添加:
project /boost/date_time ;
lib date_time ;
但它没有效果。
我究竟做错了什么?
塔克斯
编辑:我不是在寻找一个可行的解决方案。我需要一些对正确安装 boost.build 和 boost 库的人都有效的东西。