Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v9 / html / python / ext / embeddingInCplusplus.html
CommitLineData
920dae64
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="ext.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="ext.html" title='Extending and Embedding the Python Interpreter' />
8<link rel='contents' href='contents.html' title="Contents" />
9<link rel='last' href='about.html' title='About this document...' />
10<link rel='help' href='about.html' title='About this document...' />
11<link rel="next" href="link-reqs.html" />
12<link rel="prev" href="extending-with-embedding.html" />
13<link rel="parent" href="embedding.html" />
14<link rel="next" href="link-reqs.html" />
15<meta name='aesop' content='information' />
16<title>5.5 Embedding Python in C++ </title>
17</head>
18<body>
19<DIV CLASS="navigation">
20<div id='top-navigation-panel' xml:id='top-navigation-panel'>
21<table align="center" width="100%" cellpadding="0" cellspacing="2">
22<tr>
23<td class='online-navigation'><a rel="prev" title="5.4 Extending Embedded Python"
24 href="extending-with-embedding.html"><img src='../icons/previous.png'
25 border='0' height='32' alt='Previous Page' width='32' /></A></td>
26<td class='online-navigation'><a rel="parent" title="5. Embedding Python in"
27 href="embedding.html"><img src='../icons/up.png'
28 border='0' height='32' alt='Up One Level' width='32' /></A></td>
29<td class='online-navigation'><a rel="next" title="5.6 Linking Requirements"
30 href="link-reqs.html"><img src='../icons/next.png'
31 border='0' height='32' alt='Next Page' width='32' /></A></td>
32<td align="center" width="100%">Extending and Embedding the Python Interpreter</td>
33<td class='online-navigation'><a rel="contents" title="Table of Contents"
34 href="contents.html"><img src='../icons/contents.png'
35 border='0' height='32' alt='Contents' width='32' /></A></td>
36<td class='online-navigation'><img src='../icons/blank.png'
37 border='0' height='32' alt='' width='32' /></td>
38<td class='online-navigation'><img src='../icons/blank.png'
39 border='0' height='32' alt='' width='32' /></td>
40</tr></table>
41<div class='online-navigation'>
42<b class="navlabel">Previous:</b>
43<a class="sectref" rel="prev" href="extending-with-embedding.html">5.4 Extending Embedded Python</A>
44<b class="navlabel">Up:</b>
45<a class="sectref" rel="parent" href="embedding.html">5. Embedding Python in</A>
46<b class="navlabel">Next:</b>
47<a class="sectref" rel="next" href="link-reqs.html">5.6 Linking Requirements</A>
48</div>
49<hr /></div>
50</DIV>
51<!--End of Navigation Panel-->
52
53<H1><A NAME="SECTION007500000000000000000"></A><A NAME="embeddingInCplusplus"></A>
54<BR>
555.5 Embedding Python in C++
56
57</H1>
58
59<P>
60It is also possible to embed Python in a C++ program; precisely how this
61is done will depend on the details of the C++ system used; in general you
62will need to write the main program in C++, and use the C++ compiler
63to compile and link your program. There is no need to recompile Python
64itself using C++.
65
66<P>
67
68<DIV CLASS="navigation">
69<div class='online-navigation'>
70<p></p><hr />
71<table align="center" width="100%" cellpadding="0" cellspacing="2">
72<tr>
73<td class='online-navigation'><a rel="prev" title="5.4 Extending Embedded Python"
74 href="extending-with-embedding.html"><img src='../icons/previous.png'
75 border='0' height='32' alt='Previous Page' width='32' /></A></td>
76<td class='online-navigation'><a rel="parent" title="5. Embedding Python in"
77 href="embedding.html"><img src='../icons/up.png'
78 border='0' height='32' alt='Up One Level' width='32' /></A></td>
79<td class='online-navigation'><a rel="next" title="5.6 Linking Requirements"
80 href="link-reqs.html"><img src='../icons/next.png'
81 border='0' height='32' alt='Next Page' width='32' /></A></td>
82<td align="center" width="100%">Extending and Embedding the Python Interpreter</td>
83<td class='online-navigation'><a rel="contents" title="Table of Contents"
84 href="contents.html"><img src='../icons/contents.png'
85 border='0' height='32' alt='Contents' width='32' /></A></td>
86<td class='online-navigation'><img src='../icons/blank.png'
87 border='0' height='32' alt='' width='32' /></td>
88<td class='online-navigation'><img src='../icons/blank.png'
89 border='0' height='32' alt='' width='32' /></td>
90</tr></table>
91<div class='online-navigation'>
92<b class="navlabel">Previous:</b>
93<a class="sectref" rel="prev" href="extending-with-embedding.html">5.4 Extending Embedded Python</A>
94<b class="navlabel">Up:</b>
95<a class="sectref" rel="parent" href="embedding.html">5. Embedding Python in</A>
96<b class="navlabel">Next:</b>
97<a class="sectref" rel="next" href="link-reqs.html">5.6 Linking Requirements</A>
98</div>
99</div>
100<hr />
101<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
102</DIV>
103<!--End of Navigation Panel-->
104<ADDRESS>
105See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
106</ADDRESS>
107</BODY>
108</HTML>