• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>#include Issues</title>
5<link rel="stylesheet" href="../boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../index.html" title="Boost.Python">
8<link rel="up" href="../building.html" title="Chapter 2. Building and Testing">
9<link rel="prev" href="choosing_a_boost_python_library_.html" title="Choosing a Boost.Python Library Binary">
10<link rel="next" href="python_debugging_builds.html" title="Python Debugging Builds">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="" width="" height="" src="../images/boost.png"></td></tr></table>
14<hr>
15<div class="spirit-nav">
16<a accesskey="p" href="choosing_a_boost_python_library_.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../building.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="python_debugging_builds.html"><img src="../images/next.png" alt="Next"></a>
17</div>
18<div class="section">
19<div class="titlepage"><div><div><h3 class="title">
20<a name="building.include_issues"></a><a class="link" href="include_issues.html" title="#include Issues"><code class="computeroutput"><span class="preprocessor">#include</span></code>
21      Issues</a>
22</h3></div></div></div>
23<p>
24        1. If you should ever have occasion to <code class="computeroutput"><span class="preprocessor">#include</span>
25        <span class="string">"python.h"</span></code> directly in a
26        translation unit of a program using Boost.Python, use <code class="computeroutput"><span class="preprocessor">#include</span>
27        <span class="string">"boost/python/detail/wrap_python.hpp"</span></code>
28        instead. It handles several issues necessary for use with Boost.Python, one
29        of which is mentioned in the next section.
30      </p>
31<p>
32        2. Be sure not to <code class="computeroutput"><span class="preprocessor">#include</span></code>
33        any system headers before <code class="computeroutput"><span class="identifier">wrap_python</span><span class="special">.</span><span class="identifier">hpp</span></code>. This
34        restriction is actually imposed by Python, or more properly, by Python's
35        interaction with your operating system. See <a href="http://docs.python.org/ext/simpleExample.html" target="_top">http://docs.python.org/ext/simpleExample.html</a>
36        for details.
37      </p>
38</div>
39<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
40<td align="left"></td>
41<td align="right"><div class="copyright-footer">Copyright © 2002-2015 David
42      Abrahams, Stefan Seefeld<br>Copyright © 2002-2015 David Abrahams, Stefan Seefeld<p>
43        Distributed under the Boost Software License, Version 1.0. (See accompanying
44        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
45      </p>
46</div></td>
47</tr></table>
48<hr>
49<div class="spirit-nav">
50<a accesskey="p" href="choosing_a_boost_python_library_.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../building.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="python_debugging_builds.html"><img src="../images/next.png" alt="Next"></a>
51</div>
52</body>
53</html>
54