1. Boost 사용하기 [Bottom] [Top]

2. 참고링크 [Bottom] [Top]

3. 빌드/설치하기 [Bottom] [Top]

소스를 직접 다운로드해서 빌드하는 방법도 있지만 Visual C++ 7.1 (Visual Studio 2003) / 8.0 (Visual Studio 2005) 를 사용하고 있다면 Boost Consulting 에서 제공하는 BoostPro Binary Installer 를 이용하면 손쉽게 설치할 수 있다. Boost 컴포넌트를 선택할 수도 있고 환경 변수도 자동으로 등록해준다. 아주 편리하다.

3.1. bjam 사용법 [Bottom] [Top]

Boost 라이브러리는 대부분 Template 으로 구성되어 있다. 하지만 regex, thread 와 같이 빌드가 필요한 라이브러리를 포함하고 있다. bjam 은 이런 라이브러리들을 빌드와 설치를 자동화 해주기 위한 프로그램으로 직접 빌드해서 사용해도 되고 아래의 링크에서 다운받아서 사용해도 된다.

3.1.1. bjam 사용 예 [Bottom] [Top]

3.2. 라이브러리 네이밍(Library Naming) [Bottom] [Top]

For example, libboost_regex-vc71-mt-d-1_34.lib can be broken down into the following elements:

lib

Prefix: except on Microsoft Windows, every Boost library name begins with this string. On Windows, only ordinary static libraries use the lib prefix; import libraries and DLLs do not.

boost_regex

Library name: all boost library filenames begin with boost_.

-vc71

Toolset tag: identifies the toolset and version used to build the binary.

-mt

Threading tag: indicates that the library was built with multithreading support enabled. Libraries built without multithreading support can be identified by the absence of -mt.

-d

ABI tag: encodes details that affect the library's interoperability with other compiled code. For each such feature, a single letter is added to the tag:

  • Key

    Use this library when:

    s

    linking statically to the C++ standard library and compiler runtime support libraries.

    g

    using debug versions of the standard and runtime support libraries.

    y

    using a special debug build of Python.

    d

    building a debug version of your code.

    p

    using the STLPort standard library rather than the default one supplied with your compiler.

    n

    using STLPort's deprecated “native iostreams” feature.

    For example, if you build a debug version of your code for use with debug versions of the static runtime library and the STLPort standard library in “native iostreams” mode, the tag would be: -sgdpn. If none of the above apply, the ABI tag is ommitted.
-1_34

Version tag: the full Boost release number, with periods replaced by underscores. For example, version 1.31.1 would be tagged as "-1_31_1".

.lib

Extension: determined according to the operating system's usual convention. On most unix-style platforms the extensions are .a and .so for static libraries (archives) and shared libraries, respectively. On Windows, .dll indicates a shared library and .lib indicates a static or import library. Where supported by toolsets on unix variants, a full version extension is added (e.g. ".so.1.34") and a symbolic link to the library file, named without the trailing version number, will also be created.


CategoryCpp

Boost (last edited 2007-11-15 12:47:39 by viper)