Compiling VIM in Windows

I'm interested in compiling windows to support Python25, but when I

make -f Make_ming.mak gvim.exe

I get the following ( _MAX_PATH undeclared):

gcc -c -Iproto -DWIN32 -DWINVER = 0x0400 -D_WIN32_WINNT = 0x0400 -DHAVE_PATHDEF -DFEAT_BIG -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march = i386 - Wall -DFEAT_PYTHON -I c: / Python25 / include -DDYNAMIC_PYTHON -DYNAMIC_PYTHON_DLL = \ "python25.dll \" -O3 -fomit-frame-pointer -freg-struct-return -s fileio.c -o gobj / fileio.o
fileio.c: In function `buf_modname ':
fileio.c: 5877: error: _MAX_PATH 'undeclared (first use in this function)
fileio.c: 5877: error: (Each undeclared identifier is reported only once 
fileio.c: 5877: error: for each function it appears in.) 
fileio.c: In function `vim_tempname ':
fileio.c: 6832: error: `_MAX_PATH 'undeclared (first use in this function)
make: *** [gobj / fileio.o] Error 1

Any ideas? What am I missing?

Thanks.

+3
source share
3 answers

I am not trying to solve the problem myself, but I followed this video tutorial to do what you are trying, and it worked like a charm:

http://showmedo.com/videotutorials/video?name=1850010&fromSeriesID=185 .

+1
source

Vim, download vim.org ... (gvim, Cream, Portable Gvim)

Python Windows, 2.6.1 3.0.1 python.org?

_MAX_PATH PATH_MAX _PATH_MAX, stdlib.h/limits.h sys/param.h Linux.

? - undefined? PATH_MAX PATH_MAX.

0

Python 2.5?

, : vim.exe gvim.exe gooli.org ( Python 2.5 / 2.6)

0

Source: https://habr.com/ru/post/1706272/


All Articles