[Pythonmac-SIG] _environ using python as a bundled library

Jack Jansen Jack.Jansen@oratrix.com
Sun, 2 Jun 2002 00:36:38 +0200


On zaterdag, juni 1, 2002, at 11:05 , Magladry, Stephen wrote:

> I am trying to use Python as a bundled library within another 
> library using
> the Metrowerks compiler. When I try to link a project that that 
> includes the
> Python bundle I get a link error, _environ is undefined. Anyone 
> know how to
> work around this?
>
> _environ is part of crt1.o, used for apps and it has _environ, but that
> doesn't help me.
>
> Back in February, Jack asked a very similar question, though I 
> don't see a
> solution posted. Is there one?

The problem was fixed, but I can't for the life of me remember how....

What Python version are you using? Could you try checking out 
the CVS python, and see whether the problem is fixed there? You 
are using the framework Python, I assume, not a .so-based Python 
without frameworks? This hasn't been tested at all really, so 
you would be on your own then...
--
- Jack Jansen        <Jack.Jansen@oratrix.com>        
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- 
Emma Goldman -