include.qbk 968 B

1234567891011121314151617181920212223242526272829
  1. [/==============================================================================
  2. Copyright (C) 2001-2015 Joel de Guzman
  3. Copyright (C) 2001-2011 Hartmut Kaiser
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ===============================================================================/]
  7. [section Include]
  8. Spirit is a header file only library. There are no libraries to link to.
  9. To use Spirit X3 simply include:
  10. #include <boost/spirit/home/x3.hpp>
  11. To distinguish between Spirit versions, you can inspect the version file:
  12. #include <boost/spirit/home/x3/version.hpp>
  13. using the preprocessor define
  14. SPIRIT_X3_VERSION
  15. It is a hex number where the first two digits determine the major version while
  16. the last two digits determine the minor version. For example:
  17. #define SPIRIT_X3_VERSION 0x3000 // version 3.0
  18. [endsect] [/Include]