欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Boost
来自开放百科 - 灰狐
(版本间的差异)
小 (Boost移动到Boost C++ Libraries) |
小 (→文档) |
||
(未显示1个用户的6个中间版本) | |||
第1行: | 第1行: | ||
− | {{SeeWikipedia}} | + | {{SeeWikipedia|Boost C++ Libraries}} |
+ | [[文件:Boost-logo.png|right|Boost]] | ||
+ | Boost | ||
+ | ==简介== | ||
“...one of the most highly regarded and expertly designed C++ library projects in the world.” — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards | “...one of the most highly regarded and expertly designed C++ library projects in the world.” — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards | ||
− | == | + | Boost C++ 库(Libraries) 是一组扩充 [[C++]] 功能性的经过同行评审(Peer-reviewed)且开放源代码程序库。大多数的函数为了能够以开放源代码、封闭项目的方式运作,而授权于 Boost 软件授权条款(Boost Software License) 之下。许多 Boost 的开发人员是来自 C++ 标准委员会,而部份的 Boost 库成为 C++ 的 TR1 标准之一。 |
+ | |||
+ | ==新闻== | ||
+ | <rss>http://www.boost.org/feed/news.rss|short|date|max=10</rss> | ||
+ | |||
+ | ==功能== | ||
+ | |||
+ | ==指南== | ||
+ | ===编译和安装=== | ||
wget http://switch.dl.sourceforge.net/sourceforge/boost/boost_1_33_1.tar.gz | wget http://switch.dl.sourceforge.net/sourceforge/boost/boost_1_33_1.tar.gz | ||
tar zxvf boost_1_33_1.tar.gz | tar zxvf boost_1_33_1.tar.gz | ||
第19行: | 第30行: | ||
apt-get install boost-devel | apt-get install boost-devel | ||
− | == | + | ===例子=== |
#include <boost/lexical_cast.hpp> | #include <boost/lexical_cast.hpp> | ||
#include <iostream> | #include <iostream> | ||
第40行: | 第51行: | ||
add include path in VC 6.0 : Tools > Options > Directories > include files | add include path in VC 6.0 : Tools > Options > Directories > include files | ||
C:\C-C++\BOOST_1_33_1 | C:\C-C++\BOOST_1_33_1 | ||
− | |||
− | |||
− | + | ==项目== | |
+ | *[http://code.google.com/p/boost-doc-zh/ boost 文档汉化] | ||
+ | |||
+ | ==文档== | ||
+ | *[http://docs.huihoo.com/boost/ Boost文档] | ||
+ | |||
+ | ==图集== | ||
+ | |||
+ | ==链接== | ||
+ | *[http://www.boost.org/ Boost 官网] | ||
− | [[ | + | [[category:c++]] |
+ | [[category:Huihoo Foundation]] |
2023年3月25日 (六) 08:18的最后版本
您可以在Wikipedia上了解到此条目的英文信息 Boost Thanks, Wikipedia. |
Boost
目录 |
[编辑] 简介
“...one of the most highly regarded and expertly designed C++ library projects in the world.” — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards
Boost C++ 库(Libraries) 是一组扩充 C++ 功能性的经过同行评审(Peer-reviewed)且开放源代码程序库。大多数的函数为了能够以开放源代码、封闭项目的方式运作,而授权于 Boost 软件授权条款(Boost Software License) 之下。许多 Boost 的开发人员是来自 C++ 标准委员会,而部份的 Boost 库成为 C++ 的 TR1 标准之一。
[编辑] 新闻
自http://www.boost.org/feed/news.rss加载RSS失败或RSS源被墙
[编辑] 功能
[编辑] 指南
[编辑] 编译和安装
wget http://switch.dl.sourceforge.net/sourceforge/boost/boost_1_33_1.tar.gz tar zxvf boost_1_33_1.tar.gz cd boost_1_33_1 #apt-get install bjam // bjam: Software build tool #bjam "-sTOOLS=gcc" install // long time , install to /usr/local/lib
Debian:
// Boost 1_31 deb package apt-get install libboost-date-time-dev apt-get install libboost-filesystem-dev apt-get install libboost-regex-dev apt-get install libboost-serialization-dev apt-get install libboost-test-dev apt-get install libboost-dev apt-get install boost-devel
[编辑] 例子
#include <boost/lexical_cast.hpp> #include <iostream>
int main() { using boost::lexical_cast; int a = lexical_cast<int>("123"); double b = lexical_cast<double>("123.12"); std::cout<<a<<std::endl; std::cout<<b<<std::endl; return 0; } g++ -o test -I/usr/local/include/boost-1_33_1/ test.cpp g++ -o test -I/usr/include/ test.cpp // use boost 1_32 deb package ./test 123 123.12
Windows
add include path in VC 6.0 : Tools > Options > Directories > include files C:\C-C++\BOOST_1_33_1
[编辑] 项目
[编辑] 文档
[编辑] 图集
[编辑] 链接
分享您的观点