GNU bug report logs -
#9960
Compiling Emacs trunk with MSVC
Previous Next
Reported by: Eli Zaretskii <eliz <at> gnu.org>
Date: Sat, 5 Nov 2011 11:24:02 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 9960 <at> debbugs.gnu.org (full text, mbox):
On 11/5/2011 7:22 AM, Eli Zaretskii wrote:
> Does this patch give good results?
Yes. Better. Thanks.
Then it can't find a definition of `mode_t' in `strmode'.
This patch will fix this error:
/* Define to the equivalent of the C99 'restrict' keyword, or to
nothing if this is not supported. Do not define if restrict is
@@ -341,6 +345,13 @@
# define restrict
#endif
+/* Define to `int' if <sys/types.h> does not define. */
+#ifdef __GNUC__
+/* No action required for gcc */
+#else /* MSVC */
+#define mode_t int
+#endif
+
/* A va_copy replacement for MSVC. */
#ifdef _MSC_VER
# ifdef _WIN64
After that, I get a link error for ctags:
ctags.obj : error LNK2019: unresolved external symbol _sys_stat
referenced in fu
nction _process_file_name
obj/i386/ctags.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 9.0\
VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 9.0\
VC\BIN\nmake.exe"' : return code '0x2'
Stop.
I am not sure what to do about _sys_stat.
Christoph
This bug report was last modified 13 years and 61 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.