Pyrex and Distuils: an enhanced build_ext command

Thomas Heller theller at python.net
Wed Jul 10 07:43:02 EDT 2002


"Graham Fawcett" <gmfawcett at operamail.com> wrote in message news:3d799735.0207100216.4eb8a9cd at posting.google.com...
>                     # compiling with mingw32 gets an "initializer not
> a constant" error
>                     #
> http://www.python.org/cgi-bin/faqw.py?req=show&file=faq03.024.htp
>                     # doesn't appear to happen with MSVC
>                     # so if we are compiling with mingw32, massage the
> Pyrex-generated
>                     # C files to compile properly
>

Isn't this problem (initializer not a constant) solved by compiling
the file in C++ mode (with .cpp extension)?

Thomas





More information about the Python-list mailing list