What version(s) of MSVC can be used to compile XEmacs? I've tried 6.0,
8.0, and 9.0.
With 6.0, I get several instances of "error LNK2001: unresolved
external symbol __ftol2". All were related to libraries from optlibs.
Googling showed that this was probably an indication that a newer
version of MSVC was needed.
With 8.0, I get a similar error about "__iob":
libjpeg.lib(jerror.obj) : error LNK2001: unresolved external symbol
__iob
C:\code\xemacs-beta\src\temacs.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\link.exe"' : return code '0x460'
This one seems to be a possible indication that this version of MSVC
is too new for this library.
With 9.0, I get a parser error:
console-msw.c
c:\code\xemacs-beta\src\intl-auto-encap-win32.h(153) : error C2061: syntax error :
identifier 'LPSHQUERYRBINFO'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\cl.EXE"' : return code '0x2'
No idea what that's about...
(I did remember to do "nmake -f xemacs.mak clean" before each attempt.)
Anyway, it seems that the optlibs libraries are closely tied to the
particular MSVC version used, so maybe you should always include the
MSVC version in the filename from now on, and provide versions for
different releases of MSVC, preferably in a listable directory (rather
than under
http://www.xemacs.org/Download/win32/, which seems to have
an index.html file)
I would try and build the libraries myself, but I know from experience
that that's *not* fun, mostly because the MSVC project format seems to
change incompatibly with every new release -- it's enough to make
autocrap seem quite elegant indeed!
(It doesn't help that I don't have a usable copy of the MSVC 6 IDE, so
I can't use MSVC 6 project files.)
It's also possible that my use of BUILD_FOR_SETUP_KIT=1 along with
DEBUG_XEMACS=1 is somehow screwing things up, I guess. The reason for
the former is that I'll want to install to my USB drive, and it
wouldn't do for such an installation to require a debugging MSVC
runtime -- random computers at school are probably not going to have
it available.
P.S. There were also some warnings about conversions from __time64_t
or time_t to long with MSVC 8 and 9.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta