[C++-sig] "version mismatch?" because of libpython link problem?

2010-05-06 Thread Amos Anderson
Summary: I have a setup which works on Linux, but not OSX 10.6.3. I want my build system to build its own python, build boost linking to that python, build my extensions linking to boost, and then run my python application with my c++ extensions. I'm getting the "version mismatch" error, and I can'

[C++-sig] boost python constructor for tr1::array

2010-03-01 Thread Amos Anderson
Hello -- i've got a wrapper for a tr1::array, but i don't know how to make a constructor for it. i have something like: //some stuff defining functions //... class_ > (ss.str().c_str()) .def("__getitem__", get, return_value_policy()) .def("__setitem__", &array_setitem) .def("_

Re: [C++-sig] incorrect linking to libpython (Dane Springmeyer)

2010-03-01 Thread Amos Anderson
> > Message: 2 > Date: Fri, 26 Feb 2010 18:36:16 -0800 > From: Dane Springmeyer > To: Development of Python/C++ integration > Subject: Re: [C++-sig] incorrect linking to libpython > Message-ID: <57569986-7d90-4686-8384-809f8d27f...@hailmail.net> > Content-Type: text/plain; charset=US-ASCII; forma

Re: [C++-sig] profiling python extension

2010-02-28 Thread Amos Anderson
> Date: Sat, 27 Feb 2010 21:52:17 -0600 > From: Alexey Akimov > To: "Development of Python/C++ integration" > Subject: [C++-sig] profiling python extension > Message-ID: >        <382d227f1002271952p25858f1eyeb1c495bd282...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Dear

[C++-sig] incorrect linking to libpython

2010-02-26 Thread Amos Anderson
Hello -- summary: I'm trying to compile the boost python library using a custom installed python on osx. however, it appears to be linking to the system library, not the installed library. I'm using OSX 10.6.2, which has python 2.6.1 by default. I wanted to try to install 2.6.4 just to see how t

Re: [C++-sig] how do i interrupt a C++ extension?

2010-02-19 Thread Amos Anderson
>>> - Original Message >>> From: Amos Anderson >>> To: Development of Python/C++ integration >>> Sent: Wed, February 3, 2010 12:24:13 PM >>> Subject: [C++-sig] how do i interrupt a C++ extension? >>> >>> Hello -- &

Re: [C++-sig] how do i interrupt a C++ extension?

2010-02-06 Thread Amos Anderson
ng the list at >        cplusplus-sig-ow...@python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Cplusplus-sig digest..." > > > Today's Topics: > >   1. how do i interrupt a C++ extension? (Amos Anderson) &

[C++-sig] how do i interrupt a C++ extension?

2010-02-03 Thread Amos Anderson
Hello -- I've got a python script with C++ extensions. Some of my extensions take a long time to complete, and I don't want to wait for them to finish when I'm debugging stuff. However, when I do Ctrl-C in my terminal, it's completely ignored. So it looks like python is trapping the signal, but ap

Re: [C++-sig] How to install extensions using bjam(?)

2009-10-26 Thread Amos Anderson
On Mon, Oct 26, 2009 at 7:08 AM, Anthony Foglia wrote: > Amos Anderson wrote: >> >> I'm working on a project which is mixed C++/Python, and we use Boost >> functionality in our C++, and we've set up bjam to compile our project >> (on OSX). Everything seems t

[C++-sig] How to install extensions using bjam(?)

2009-10-22 Thread Amos Anderson
Hello -- I'm working on a project which is mixed C++/Python, and we use Boost functionality in our C++, and we've set up bjam to compile our project (on OSX). Everything seems to be working quite well. To use our libraries from python scripts right now, we have to run this first: #!/bin/bash tru