create boost tool executable

倖福魔咒の 提交于 2019-12-20 09:06:16

问题


I want to know how to create a tool executable, for example bcp, with the boost libraries. I have unzip the sources, but I do not know how to build to create the tool.

Thanks


回答1:


Complementing hkaiser answer:

Run ./bootstrap.sh from $BOOST_ROOT (refer to Getting Started for additional options)

./bootstrap.sh

This will generate the a ./bjam executable. You may then do

./bjam tools/bcp

Or even copy this executable to tools/bcp and do

./bjam 

The ./bcp executable will be in $BOOST_ROOT/dist/bin




回答2:


All tools in the directory $BOOST_ROOT/tools can be build by invoking bjam from the directory where the corresponding Jamfile[.v2] is located. For bcp this needs to be done in the directory $BOOST_ROOT/tools/bcp. If you have not built bjam yet, please refer to the Getting Started document explaining the necessary steps. The built executable by default will end up in $BOOST_ROOT/dist/bin.



来源:https://stackoverflow.com/questions/4831056/create-boost-tool-executable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!