首页

欢迎

 

Welcome

欢迎来到这里, 这是一个学习数学、讨论数学的网站.

转到问题

请输入问题号, 例如: 2512

IMAGINE, THINK, and DO
How to be a scientist, mathematician and an engineer, all in one?
--- S. Muthu Muthukrishnan

Local Notes

Local Notes 是一款 Windows 下的笔记系统.

Local Notes 下载

Sowya

Sowya 是一款运行于 Windows 下的计算软件.

详情

下载 Sowya.7z (包含最新版的 Sowya.exe and SowyaApp.exe)


注: 自 v0.550 开始, Calculator 更名为 Sowya. [Sowya] 是吴语中数学的发音, 可在 cn.bing.com/translator 中输入 Sowya, 听其英语发音或法语发音.





注册

欢迎注册, 您的参与将会促进数学交流. 注册

在注册之前, 或许您想先试用一下. 测试帐号: usertest 密码: usertest. 请不要更改密码.


我制作的 slides

Problem

随机显示问题

Problèmes d'affichage aléatoires

软件 >> C++ >> boost
Questions in category: boost (boost).

boost 库中一些库是需要编译的, 比如 filesystem

Posted by haifeng on 2022-02-17 10:42:38 last update 2022-02-17 10:56:43 | Answers (0)


D:\Lib\boost_1_77_0>b2.exe --show-libraries
The following libraries require building:
    - atomic
    - chrono
    - container
    - context
    - contract
    - coroutine
    - date_time
    - exception
    - fiber
    - filesystem
    - graph
    - graph_parallel
    - headers
    - iostreams
    - json
    - locale
    - log
    - math
    - mpi
    - nowide
    - program_options
    - python
    - random
    - regex
    - serialization
    - stacktrace
    - system
    - test
    - thread
    - timer
    - type_erasure
    - wave


比如要编译 filesystem 库, 则使用选项 --with-filesystem, 但如果输错会提示.

D:\Lib\boost_1_77_0>b2.exe --with-filesystem -buildtype=complete install
Invalid option: -b

usage: b2.exe [ options ] targets...

-a      Build all targets, even if they are current.
-dx     Set the debug level to x (0-13,console,mi).
-fx     Read x instead of bootstrap.
-jx     Run up to x shell commands concurrently.
-lx     Limit actions to x number of seconds after which they are stopped.
-mx     Maximum target output saved (kb), default is to save all output.
-n      Don't actually execute the updating actions.
-ox     Mirror all output to file x.
-px     x=0, pipes action stdout and stderr merged into action output.
-q      Quit quickly as soon as a target fails.
-sx=y   Set variable x=y, overriding environment.
-tx     Rebuild x, even if it is up-to-date.
-v      Print the version of jam and exit.
--x     Option is ignored.


编译类型选项应该输入 --buildtype  

D:\Lib\boost_1_77_0>b2.exe --with-filesystem -buildtype=complete install

 

D:\Lib\boost_1_77_0\boost\compatibility\cpp_c_headers\cwchar
已复制         1 个文件。
common.copy C:\Boost\include\boost-1_77\boost\compatibility\cpp_c_headers\ctime
D:\Lib\boost_1_77_0\boost\compatibility\cpp_c_headers\ctime
已复制         1 个文件。
common.copy C:\Boost\include\boost-1_77\boost\compatibility\cpp_c_headers\cwctype
D:\Lib\boost_1_77_0\boost\compatibility\cpp_c_headers\cwctype
已复制         1 个文件。
...updated 16179 targets...