http://cpp-netlib.github.com/latest/index.html
cpp-netlib是一个不错的http库,boost可能会引入这个库,但在Windows下编译这个库要自己修改一下编译脚本,很废周折。
这里把解决的办法贴一下,顺便预祝这个库早日被boost收录,能更好的维护起来,起码编译这么基础的功能要完善。
我的环境:boost_1_47_0 cpp-netlib 0.9.4
1) Comment following lines in Jamroot:
#build-project libs/network/test ;
#build-project libs/mime/test ;
2) Change line below in libs/network/build/Jamfile.v2
from: lib cppnetlib-uri : libs/network/src/uri/parse.cpp ;
to: lib cppnetlib-uri : libs/network/src/uri/uri.cpp libs/network/src/uri/schemes.cpp ;
3) Copy bjam form your installed boost directory to cpp-netlib-0.9.4 directory.
Now you are able to build your library. Example below.
cd cpp-netlib-0.9.4
bjam.exe -sBOOST_ROOT=C:/boost/boost_1_47_0 toolset=msvc address-model=64 variant=debug link=static
bjam.exe -sBOOST_ROOT=C:/boost/boost_1_47_0 toolset=msvc address-model=64 variant=release link=static