[Pyrex] [Fwd: Re: [Mac Inter Core Duo OS 10.4.9 ] compiler complains about pyrex created .h]
David Goldsmith
David.L.Goldsmith at noaa.gov
Sat Jun 9 05:56:32 UTC 2007
Sorry, I again forgot to reply to entire list, but: OK, I got it to
work! I googled the linker error and found the solution - prefixing the
linking gcc call with MACOSX_DEPLOYMENT_TARGET=10.4 - but it's unclear
why this is necessary (i.e., why does the linker, when run manually,
think the deployment target is 10.1). Then I had trouble calling the c
function from my (external) run.py file, until I found the part in the
LO that says you can't do that directly, you have to use a Python-style
function defined in the pyx file which calls the external c function as
an intermediary and then call that Python function from your external
python file; all very confusing, but at least I got it to work. (It
would be nice if the Demos included an example of this manner of usage,
and if the "Interfacing w/ External C Code" portion of the LO reiterated
this little strangeness when discussing interfacing w/ external C
libraries - yes, I know it's said earlier in the LO, but the later
section is where the issue is ripe.)
DG
--
ERD/ORR/NOS/NOAA <http://response.restoration.noaa.gov/emergencyresponse/>
-------------- next part --------------
An embedded message was scrubbed...
From: David Goldsmith <David.L.Goldsmith at noaa.gov>
Subject: Re: [Pyrex] [Mac Inter Core Duo OS 10.4.9 ] compiler complains about
pyrex created .h
Date: Fri, 08 Jun 2007 20:50:00 -0700
Size: 1903
Url: http://lists.copyleft.no/pipermail/pyrex/attachments/20070609/966b40cf/attachment-0001.mht
More information about the Pyrex
mailing list