Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Macro BOOST_CONTRACT_STATIC_LINK

BOOST_CONTRACT_STATIC_LINK — Define this macro to compile this library as a static library (not recommended).

Synopsis

// In header: <boost/contract/core/config.hpp>

BOOST_CONTRACT_STATIC_LINK

Description

If this macro is defined, this library is compiled so it can be linked statically to user code. This library build scripts will automatically define this macro when Boost libraries are being built as static libraries.

[Warning] Warning

This library is not guaranteed to always work correctly at run-time when this macro is defined (define BOOST_CONTRACT_DYN_LINK or BOOST_ALL_DYN_LINK instead). However, this macro can be defined and this library can be safely used as a static library for user code that checks contracts in a single program unit (e.g., a single program with only statically linked libraries that check contracts).

See Also:

Compilers and Platforms


PrevUpHomeNext