简体   繁体   中英

how to compile boost thread library

I want to compile only the thread and regular expresession library of boost and I want both static and dynamic libs. Could you please let us know how to do that?

You can use bjam to build libraries. Just invoke it in your boost folder.

With parameters

bjam toolset={your toolset} variant={release|debug} threading=multi link={static|shared} {library name}

Just replace values from {} with values of your choice. For toolset name you can check {your boost dir}\\tools\\build\\v2\\user-config.jam (you can set your toolset there and you will don't have to write it in command line).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM