I wrote:

> Ken Takata wrote:
> 
> > 2017/10/17 Tue 6:09:27 UTC+9 Bram Moolenaar wrote:
> > > I wrote:
> > > 
> > > > Ken Takata wrote:
> > > > 
> > > > > Hi Bram,
> > > > > 
> > > > > 2017/10/16 Mon 0:08:11 UTC+9 Bram Moolenaar wrote:
> > > > > > This doesn't work properly.  The first problem is that running
> > > > > > install.exe gives an error that filetype.vim cannot be found.  The 
> > > > > > code
> > > > > > for this didn't change in years:
> > > > > > 
> > > > > >     sprintf(buf, "%s\\filetype.vim", installdir);
> > > > > >     if (stat(buf, &st) < 0)
> > > > > >     {
> > > > > >     printf("ERROR: Cannot find filetype.vim in \"%s\"\n", 
> > > > > > installdir);
> > > > > > 
> > > > > > Is the library we build with, containing stat(), not compatible 
> > > > > > with XP?
> > > > > 
> > > > > I haven't tried, but it might be possible.
> > > > > 
> > > > > 
> > > > > > When building install.exe with MSVC 2008 it works again.
> > > > > > But then running Vim also appears to not work, the toolbar is 
> > > > > > missing,
> > > > > > for example.  Building everything with MSVC 2008 fixes that.
> > > > > 
> > > > > This looks similar to the following problem:
> > > > > https://groups.google.com/d/topic/vim_dev/ktON3sSR-zI/discussion
> > > > > At that time, stat() returns an error when built by BCC5, and failed 
> > > > > to show
> > > > > menus, toolbars, etc.
> > > > > 
> > > > > 
> > > > > > Anyone has an idea of how to make it work on Windows XP with MSVC 
> > > > > > 2015?
> > > > > 
> > > > > Maybe, there are some options:
> > > > > 
> > > > > 1. Implement our own stat() that can work on WinXP.
> > > > >    (I don't want to do this, though.)
> > > > > 
> > > > > 2. Back to VC2008, and stop enabling if_tcl in the official installer.
> > > > >    The reason why we have to use VC2015 is that ActiveTcl 8.6.6 
> > > > > requires it.
> > > > >    If someone want to use if_tcl, they should use vim-win32-installer 
> > > > > instead.
> > > > >    I think this is the easiest solution.
> > > > > 
> > > > > 3. Back to VC2008.  Stop using tclstub86.lib from ActiveTcl 8.6.6 and 
> > > > > use one
> > > > >    built by ourself.  I haven't tried this, but hopefully the DLL from
> > > > >    ActiveTcl 8.6.6 can be used.
> > > > >    Someone who tried to use VC2017 needed to recompile tcl by himself:
> > > > >    https://github.com/vim/vim/issues/2127#issuecomment-330505345
> > > > > 
> > > > > 4. Drop support for XP.  Maybe, you don't like this. ;-)
> > > > 
> > > > There are a few problem reports related to stat() on XP when building
> > > > with MSVC 2015.  They suggest installing newer files.  I did update some
> > > > files, but it did not appear to make a difference.  Not sure if I
> > > > installed the wrong files, didn't register them, or whatever.  The MSDN
> > > > remarks about this are very vague.
> > > > 
> > > > Another option would be to use MSVC 2013, which was reported to still
> > > > work.  I don't know what the situation is with interfaces then.
> > > > 
> > > > I should also try the daily build installer on XP.  I'll do that when I
> > > > have some time.
> > > 
> > > Amazingly, the win32 installer works on XP.  Thus there must be
> > > something wrong with the way I have MSVC 2015 installed.  Now what would
> > > that be...
> > > 
> > > The appveyor config just says "image: Visual Studio 2015".  I don't see
> > > any other hint.
> > 
> > You can see the detail at here:
> > https://www.appveyor.com/docs/build-environment/#pre-installed-software
> 
> I had seen that.  It appears they install all of VC2008, 2010, 2012,
> 2013 and 2015.  I hope it's not picking up files from 2013 when building
> with the 2015 compiler.
> 
> > > Can anyone guess what "the proper way" to install MSVC 2015 is?
> > 
> > Do you install VC 2015 Update 3?
> 
> Yes.  I'll try to uninstall and do it again.  The 2015 compiler still
> seems like the best choice, and we now know it can work.

I have uninstalled and reinstalled MSVC 2015 community version update 3
and now it works fine.  I think the trick is to check "Windows XP
Support for C++" in the installation options.  I'll add a remark about
that in INSTALLpc.txt.

I'll make a new MS-Windows binary when I have some time.

-- 
Witches prefer brooms: vacuum-cleaners need extension cords!

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui