Compiling on Windows XP Fails

Vadim Lebedev vadim at mbdsys.com
Thu Jun 30 15:01:42 UTC 2005


Mark wrote:

>I am trying to compile mercurial on Windows XP and the compile fails
>with the following:
>
>running install
>running build
>running build_py
>copying mercurial\__version__.py -> build\lib.win32-2.4\mercurial
>running build_ext
>building 'mercurial.bdiff' extension
>C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c
>/nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\Lang\Python24\include
>-IC:\Lang\Python24\PC /Tcmercurial/bdiff.c
>/Fobuild\temp.win32-2.4\Release\mercurial/bdiff.obj
>bdiff.c
>mercurial\bdiff.c(87) : error C2061: syntax error : identifier 'cmp'
>mercurial\bdiff.c(87) : error C2059: syntax error : ';'
>mercurial\bdiff.c(87) : error C2059: syntax error : 'type'
>mercurial\bdiff.c(116) : warning C4013: 'cmp' undefined; assuming
>extern returning int
>
>I am not terribly familier with C so I am not sure what is happening
>here.  Can anyone help me.
>
>Aditiona Info.
>This is using the latest release from http://www.selenic.com/mercurial/release/
>This is a second run of "python setup.py install" so the files that
>python copies and the compilation of bdif.c have already been done and
>worked.
> 
>Thanks
>  
>
Try to add just after #ifdef _WIN32
#define inline __inline


Vadim



More information about the Mercurial mailing list