Wolfgang Rohdewald wrote:
On Thursday 30 July 2009, MRAB wrote:
There are other lines which are similar, eg line 1487. Do they all
give the same/similar error with your compiler?
yes. The full output with gcc-4.3:
notebook:~/kmj/src$ LANG=C python setup.py build
running build
running build_py
running build_ext
building '_regex' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -
Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c _regex.c -o
build/temp.linux-i686-2.6/_regex.o
_regex.c: In function 'bmatch_context':
_regex.c:1462: error: lvalue required as increment operand
[snip]
error: command 'gcc' failed with exit status 1
So it complains about:
++(RE_CHAR*)context->text_ptr
but not about:
++info->repeat.count
Does this mean that the gcc compiler thinks that the cast makes it an
rvalue? I'm using Visual C++ 2008 Express Edition, which doesn't
complain. What does the C standard say?
--
http://mail.python.org/mailman/listinfo/python-list