[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Failed Compilation on Windows 7 64-bit

From: Óscar Fuentes
Subject: Re: Failed Compilation on Windows 7 64-bit
Date: Thu, 04 Feb 2010 01:36:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)

Sridhar Boovaraghavan <address@hidden> writes:


> I configure it like:
> C:\emacs\nt>configure.bat --with-gcc --no-cygwin --without-xpm --with-svg 
> --cfla
> gs -Ic:\GnuWin32\include
> Upon a make bootstrap, it builds temacs, emacs and then finishes
> compiling all the lisp files.
> Then it fails with the following:
> C:\emacs\nt>make


> gcc -o oo-spd/i386/ctags.exe  -gdwarf-2 -g3  -mno-cygwin  oo-spd/i386/ctags.o 
> oo
> -spd/i386/getopt.o oo-spd/i386/getopt1.o oo-spd/i386/ntlib.o 
> oo-spd/i386/regex.o
>    -ladvapi32
> oo-spd/i386/ctags.o: In function `add_regex':
> C:\emacs\lib-src/ctags.c:5882: undefined reference to `_imp__re_set_syntax'
> C:\emacs\lib-src/ctags.c:5884: undefined reference to 
> `_imp__re_compile_pattern'


Something similar happened to me some months ago. In that case the
problem was caused by GnuWin32 header files with the same names as
Emacs' own header files. IIRC, one of those header files is regex.h

The solution is to either remove the conflicting header files from
GnuWin32 Include directory or, better, configure Emacs with


instead of


This way gcc will put c:\GnuWin32\include at the end of the search
sequence used for searching header files.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]