[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Python SWIG for Win32

From: Axel Kollmorgen <axel_at_kollmorgen.net>
Date: 2003-02-21 19:41:42 CET

On Thursday, February 13, 2003 11:12 PM [GMT+1=CET],
Dale Hirt <dale@sbcltd.com> wrote:

> swigging d:\work\svn_work\subversion\bindings\swig/svn_repos.i to
> build\svn_repos.c svn_repos.c build\svn_repos.c(1677) :
> error C2632: 'long' followed by 'long' is illegal
> [...]

i googled for "'long' followed by 'long' is illegal" and found this
(http://www.modpython.org/pipermail/mod_python/2003-January/002796.html)
:

Microsoft C compiler doesn't support "long long", this has been fixed in
the latest CVS code. [Replace long long with LONG_LONG], and it will
work OK.

note: LONG_LONG is defined in <python>\include\pyconfig.h.

so you should get this to work by replacing all "long long"s in
<swig>\Lib\python\python.swg by LONG_LONG. i didn't have time to try yet
(i build it earlier by just replacing all "long long" in python.swg by
just "long") and would welcome feedback.

-- 
ax
An optimist is a person who sees a green light everywhere. The
pessimist sees only the red light. But the truly wise person is color
blind. - albert schweitzer
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 21 20:46:15 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.