|
Re: using gcc to generate extensions for windows: msg#00032python.pyrex
Phillip J. Eby wrote: At 08:54 AM 4/16/04 +0100, Voidspace wrote: Can you tell me what the correct gcc incantion would be to generate a .pyd I guestimated with the following result.: D:\Python Projects\c>gcc -shared primes.o -L D:\Python23\libs\libpython23.a -o primes.pyd primes.o(.text+0x5f):primes.c: undefined reference to `_imp__PyArg_ParseTupleAnd Keywords' primes.o(.text+0x7c):primes.c: undefined reference to `_imp___Py_NoneStruct' primes.o(.text+0x94):primes.c: undefined reference to `_imp__PyList_New' primes.o(.text+0x1f5):primes.c: undefined reference to `_imp__PyObject_GetAttrSt ring' primes.o(.text+0x22f):primes.c: undefined reference to `_imp__PyInt_FromLong' primes.o(.text+0x268):primes.c: undefined reference to `_imp__PyTuple_New' primes.o(.text+0x2c4):primes.c: undefined reference to `_imp__PyObject_CallObjec t' primes.o(.text+0x4e3):primes.c: undefined reference to `_imp__Py_InitModule4' primes.o(.text+0x4fa):primes.c: undefined reference to `_imp__PyImport_AddModule ' primes.o(.text+0x51d):primes.c: undefined reference to `_imp__PyObject_SetAttrSt ring' primes.o(.text+0x5a2):primes.c: undefined reference to `_imp__PyString_FromStrin g' primes.o(.text+0x5c0):primes.c: undefined reference to `_imp__PyString_FromStrin g' primes.o(.text+0x5e1):primes.c: undefined reference to `_imp__PyModule_GetDict' primes.o(.text+0x5fe):primes.c: undefined reference to `_imp__PyTuple_New' primes.o(.text+0x61e):primes.c: undefined reference to `_imp__PyString_FromStrin g' primes.o(.text+0x662):primes.c: undefined reference to `_imp__PyCode_New' primes.o(.text+0x682):primes.c: undefined reference to `_imp__PyThreadState_Get' primes.o(.text+0x68d):primes.c: undefined reference to `_imp__PyFrame_New' primes.o(.text+0x6b4):primes.c: undefined reference to `_imp__PyTraceBack_Here' D:\Python Projects\c> -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. --- http://www.atlantibots.org.uk http://groups.yahoo.com/group/atlantis_talk/ Atlantibots - stomping across the worlds of Atlantis. Building with Python - programming language that rules the world. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Newbie Question (problems with GCC): 00032, Voidspace |
|---|---|
| Next by Date: | Re: successfully using gcc to generate extensions for windows: 00032, Voidspace |
| Previous by Thread: | Re: Newbie Question (problems with GCC)i: 00032, Voidspace |
| Next by Thread: | Re: successfully using gcc to generate extensions for windows: 00032, Voidspace |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |