我在我的项目中使用boost构建,现在我想使用boost date_time。我一派,发现它应该(可能)这样使用:boost在gentoo上构建site-config.jam
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标志,那么它工作正常) 我认为,库奥菱已被添加到网站config.jam中,所以我尝试添加此:
project /boost/date_time ;
lib date_time ;
,但它没有任何效果。
我在做什么错了?
Thaks
编辑: 我不想找,只是有效的解决方案。我需要一些适用于boost.build和boost库的正确安装方法。
感谢您的回答。这是有效的,但是这是指定预构建boost库的正确方法吗?我试图做的事情是,当新鲜(和正确)安装的boost build的人拉我的项目,它应该只是编译。我将不得不添加这个问题:-) – cube 2009-06-21 09:56:35