[C++-sig] Re: help building hello world example on Debian

Faheem Mitha faheem at email.unc.edu
Sun Apr 11 19:17:21 CEST 2004


On Fri, 09 Apr 2004 11:34:24 -0400, Daniel Holth <dholth at fastmail.fm> wrote:
>
> Faheem Mitha wrote:
>
>| I have the debian package installed. I also downloaded the debian
>| sources for boost, which are the boost sources patched for debian.
>|
>| I was hoping that someone who uses Debian could tell me the correct
>|  compilation arguments to pass to g++, which I can then use to
>| write a simple Makefile for hello.cpp. Surely it cannot be so
>| difficult.
>
> Under Linux (I can't do this in Windows yet) I have had no difficulty
> using distutils to build boost.python extensions.  Just put
> boost_python in the list of library dependencies and it works; my
> shoutpy (http://dingoskidneys.com/shoutpy/) would be a reasonable example.
>
> It is especially easy with boost packages since the standard include
> and library paths are all that's necessary.

Just one question about the config.py in the shoutpy sources:

Why 

libraries.extend(("boost_python",))

instead of just adding boost_python to libraries? I can't find any
documentation about libraries.extend in
http://www.python.org/doc/current/dist/dist.html. Where did you learn
about it?

Thanks.
                                                             Faheem.





More information about the Cplusplus-sig mailing list