|
Re: Newbie Question (problems with GCC): msg#00028python.pyrex
At 08:54 AM 4/16/04 +0100, Voidspace wrote: In actual the reply from Greg might contain the answer to my further difficulties :-) Where did you put the distutils.cfg? It has to go in your Python2X\Lib\distutils directory. Mine looks like this: [build] compiler=mingw32 If you have that in place, you should never need the --compiler flag. In the two years I've had that file, I've never needed --compiler or -c. Second, did you actually build a 'libpython2x.a' file? You didn't mention that. If you didn't do that, you're not going to be able to actually build a .pyd. See step 2 on this page: http://sebsauvage.net/python/mingw.html (By the way, whenever I refer to "python2x" I mean e.g. python22 or python23, as appropriate for what version you're using.) F:\Python Projects\c>gcc -shared primes.o -o primes.so That won't work. Windows uses '.pyd' files, not '.so' files. And, you've got no -L here to specify where your libpython is at. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Newbie Question (problems with GCC): 00028, Andreas Kostyrka |
|---|---|
| Next by Date: | Re: Newbie Question (problems with GCC): 00028, Voidspace |
| Previous by Thread: | Re: Newbie Question (problems with GCC)i: 00028, Andreas Kostyrka |
| Next by Thread: | Re: Newbie Question (problems with GCC): 00028, Voidspace |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | Mail Home | sitemap | FAQ | advertise |