Lisandro Dalcin wrote:
> On 17 April 2010 16:32, Alex Wiltschko <alex...@gmail.com> wrote:
>> I've stepped away from Cython for about a year, and returned on a new
>> computer, needing to recompile some older Cython code I wrote. It has run
>> fine previously.
>> I'm issuing this command to build my code:
>> : cython mytype_svd.pyx
>> : gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing
>> -I/usr/include/python2.6 -o mytype_svd.so mytype_svd.c
> 
> In general, you should nerver do that, but use distutils instead. For
> example, you direct invocation to gcc is wrong, you are missing a
> "-lpython2.6" or equivalent. You should write a proper setup.py and
> let distutils invoke GCC the right way for your platform.
> 

Alternatively, depending on your needs, only use the 
"distutils.sysconfig" module to get the proper flags, and then use a 
decent build system.

-- 
Dag Sverre
_______________________________________________
Cython-dev mailing list
Cython-dev@codespeak.net
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to