I'm trying to build an extension for python2.2.2 and distutils on cygwin. -cmingw has error: cant compile on platform "nt" with "mingw" compiler -ccygwin has the LONG_BIT error.. I can't even find where LONG_BIT is defined :( This is on win98, not NT.. Any ideas? I seem to be making some progress building this extension manually. Looks like the -mno-cygwin option to gcc is the way to go. Simon. -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 02 6249 6940 http://arrowtheory.com
Simon Burton <simon@arrowtheory.com> writes:
I'm trying to build an extension for python2.2.2 and distutils on cygwin.
-cmingw has error: cant compile on platform "nt" with "mingw" compiler
I made a quick test (I normally use MSVC): It seems to work with -cmingw32. From cmd, have not tried from cygwin. Although I get linker errors, probably because I don't have libpython.a or how this is named. Thomas
On Fri, 23 Apr 2004 09:13:52 +0200 Thomas Heller <theller@python.net> wrote:
I made a quick test (I normally use MSVC): It seems to work with -cmingw32. From cmd, have not tried from cygwin.
Although I get linker errors, probably because I don't have libpython.a or how this is named.
Thomas
thanks thomas. I'd been sitting in front of google for three days and needed someone to talk to. It works now! woo hoo! Simon. -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 02 6249 6940 http://arrowtheory.com
Simon Burton <simon@arrowtheory.com> writes:
On Fri, 23 Apr 2004 09:13:52 +0200 Thomas Heller <theller@python.net> wrote:
I made a quick test (I normally use MSVC): It seems to work with -cmingw32. From cmd, have not tried from cygwin.
Although I get linker errors, probably because I don't have libpython.a or how this is named.
Thomas
thanks thomas. I'd been sitting in front of google for three days and needed someone to talk to. It works now! woo hoo!
Great. Things like this can be found by setting the DISTUTILS_DEBUG env variable to 1, in this case full tracebacks are printed. Using my cookbook recipe in addition leaves you in the pdb debugger after that, and you can simply inspect the current namespace, to find that the compiler_class dictionary has a 'mingw32' entry and no 'mingw' entry. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65287 Or you use the 'setup.py build_ext --help' to find the --help-compiler switch, and then 'setup.py build_ext --help-compiler' lists the compilers distutils knows about. Thomas
participants (2)
-
Simon Burton -
Thomas Heller