[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:
[snip]
> 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
[snip]
> 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'
[snip]
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
-isystemc:\GnuWin32\include
instead of
-Ic:\GnuWin32\include
This way gcc will put c:\GnuWin32\include at the end of the search
sequence used for searching header files.