Thanks! As it turns out, installing Cython-0.11.2 was the answer. I
thought I had the newest version, since Ubuntu's "Synaptic Package
Manager" said I did. I'll be more careful in the future.
-Ian
Robert Bradshaw wrote:
On Thu, 27 Aug 2009, Ian Langmore wrote:
Thanks Robert, I hope colloquium tea at UW still brings good food.
Most of the time :)
When you say I was "declaring a new variable", I think you're referring to
cdef float use_fun_ptr(float, float, float (float, float))
Right? I was declaring function in the same way that variables are declared
at the top of c-code. This "function prototype" isn't necessary always, but
it doesn't hurt, does it? (I'm a novice)
When you do that inside of a function (inside your main() here) you're
declaring a new local variable.
In terms of top-level declarations, you should never need prototypes in
Cython.
As for the compile error, I have python 2.5 and cython 0.9.6.14-1 on my
Ubuntu Intrepid machine.
Probably a bug in an old version of Cython that has since been fixed, I
recommend upgrading.
- Robert
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev
--
******************************************************************
Ian Langmore
Postdoctoral Researcher, Columbia Univ. Applied Mathematics
415-272-6321
www.columbia.edu/~il2176
******************************************************************
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev