<!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
<link rel=
"STYLESHEET" href=
"dist.css" type='text/css'
/>
<link rel=
"SHORTCUT ICON" href=
"../icons/pyfav.png" type=
"image/png" />
<link rel='start' href='../index.html' title='Python Documentation Index'
/>
<link rel=
"first" href=
"dist.html" title='Distributing Python Modules'
/>
<link rel='index' href='genindex.html' title='Index'
/>
<link rel='last' href='about.html' title='About this document...'
/>
<link rel='help' href='about.html' title='About this document...'
/>
<link rel=
"next" href=
"module-distutils.msvccompiler.html" />
<link rel=
"prev" href=
"module-distutils.ccompiler.html" />
<link rel=
"parent" href=
"api-reference.html" />
<link rel=
"next" href=
"module-distutils.msvccompiler.html" />
<meta name='aesop' content='information'
/>
<title>10.3 distutils.unixccompiler -- Unix C Compiler
</title>
<div id='top-navigation-panel' xml:id='top-navigation-panel'
>
<table align=
"center" width=
"100%" cellpadding=
"0" cellspacing=
"2">
<td class='online-navigation'
><a rel=
"prev" title=
"10.2 distutils.ccompiler "
href=
"module-distutils.ccompiler.html"><img src='../icons/previous.png'
border='
0' height='
32' alt='Previous Page' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"parent" title=
"10. API Reference"
href=
"api-reference.html"><img src='../icons/up.png'
border='
0' height='
32' alt='Up One Level' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"next" title=
"10.4 distutils.msvccompiler "
href=
"module-distutils.msvccompiler.html"><img src='../icons/next.png'
border='
0' height='
32' alt='Next Page' width='
32'
/></A></td>
<td align=
"center" width=
"100%">Distributing Python Modules
</td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<td class='online-navigation'
><a href=
"modindex.html" title=
"Module Index"><img src='../icons/modules.png'
border='
0' height='
32' alt='Module Index' width='
32'
/></a></td>
<td class='online-navigation'
><a rel=
"index" title=
"Index"
href=
"genindex.html"><img src='../icons/index.png'
border='
0' height='
32' alt='Index' width='
32'
/></A></td>
<div class='online-navigation'
>
<b class=
"navlabel">Previous:
</b>
<a class=
"sectref" rel=
"prev" href=
"module-distutils.ccompiler.html">10.2 distutils.ccompiler
</A>
<b class=
"navlabel">Up:
</b>
<a class=
"sectref" rel=
"parent" href=
"api-reference.html">10. API Reference
</A>
<b class=
"navlabel">Next:
</b>
<a class=
"sectref" rel=
"next" href=
"module-distutils.msvccompiler.html">10.4 distutils.msvccompiler
</A>
<!--End of Navigation Panel-->
<H1><A NAME=
"SECTION0010300000000000000000">
10.3 <tt class=
"module">distutils.unixccompiler
</tt> -- Unix C Compiler
</A>
<A NAME=
"module-distutils.unixccompiler"></A>
This module provides the
<tt class=
"class">UnixCCompiler
</tt> class, a subclass of
<tt class=
"class">CCompiler
</tt> that handles the typical
<span class=
"Unix">Unix
</span>-style command-line
<LI>macros defined with
<b class=
"programopt">-D
<var>name
</var><big>[
</big>=value
<big>]
</big></b>
<LI>macros undefined with
<b class=
"programopt">-U
<var>name
</var></b>
<LI>include search directories specified with
<b class=
"programopt">-I
<var>dir
</var></b>
<LI>libraries specified with
<b class=
"programopt">-l
<var>lib
</var></b>
<LI>library search directories specified with
<b class=
"programopt">-L
<var>dir
</var></b>
<LI>compile handled by
<b class=
"program">cc
</b> (or similar) executable with
<b class=
"programopt">-c
</b> option: compiles
<span class=
"file">.c
</span> to
<span class=
"file">.o
</span>
<LI>link static library handled by
<b class=
"program">ar
</b> command (possibly
with
<b class=
"program">ranlib
</b>)
<LI>link shared library handled by
<b class=
"program">cc
</b> <b class=
"programopt">-shared
</b>
<div class='online-navigation'
>
<table align=
"center" width=
"100%" cellpadding=
"0" cellspacing=
"2">
<td class='online-navigation'
><a rel=
"prev" title=
"10.2 distutils.ccompiler "
href=
"module-distutils.ccompiler.html"><img src='../icons/previous.png'
border='
0' height='
32' alt='Previous Page' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"parent" title=
"10. API Reference"
href=
"api-reference.html"><img src='../icons/up.png'
border='
0' height='
32' alt='Up One Level' width='
32'
/></A></td>
<td class='online-navigation'
><a rel=
"next" title=
"10.4 distutils.msvccompiler "
href=
"module-distutils.msvccompiler.html"><img src='../icons/next.png'
border='
0' height='
32' alt='Next Page' width='
32'
/></A></td>
<td align=
"center" width=
"100%">Distributing Python Modules
</td>
<td class='online-navigation'
><img src='../icons/blank.png'
border='
0' height='
32' alt='' width='
32'
/></td>
<td class='online-navigation'
><a href=
"modindex.html" title=
"Module Index"><img src='../icons/modules.png'
border='
0' height='
32' alt='Module Index' width='
32'
/></a></td>
<td class='online-navigation'
><a rel=
"index" title=
"Index"
href=
"genindex.html"><img src='../icons/index.png'
border='
0' height='
32' alt='Index' width='
32'
/></A></td>
<div class='online-navigation'
>
<b class=
"navlabel">Previous:
</b>
<a class=
"sectref" rel=
"prev" href=
"module-distutils.ccompiler.html">10.2 distutils.ccompiler
</A>
<b class=
"navlabel">Up:
</b>
<a class=
"sectref" rel=
"parent" href=
"api-reference.html">10. API Reference
</A>
<b class=
"navlabel">Next:
</b>
<a class=
"sectref" rel=
"next" href=
"module-distutils.msvccompiler.html">10.4 distutils.msvccompiler
</A>
<span class=
"release-info">Release
2.4.2, documentation updated on
28 September
2005.
</span>
<!--End of Navigation Panel-->
See
<i><a href=
"about.html">About this document...
</a></i> for information on suggesting changes.