On 01/07/2018 08:48 p.m., Ken Takata wrote:
> Hi Cesar,
>
> 2018/7/2 Mon 8:59:44 UTC+9 Cesar wrote:
>> When trying to compile vim 8.1.137 with statically linked pyhon 2.7.14,
>> using MinGW-W64 on Windows 7, I get:
>>
>> --------------------
>> [...]
>> gcc -Iproto -DWIN32 -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 [...]
>> -Lc:/python27/libs -lpython27
>> gobjZi686/ex_cmds2.o:ex_cmds2.c:(.text+0x761a): undefined reference to
>> `python_enabled'
>> gobjZi686/ex_cmds2.o:ex_cmds2.c:(.text+0x77e8): undefined reference to
>> `python_enabled'
>> gobjZi686/ex_cmds2.o:ex_cmds2.c:(.text+0x78eb): undefined reference to
>> `python_enabled'
>> gobjZi686/ex_cmds2.o:ex_cmds2.c:(.text+0x792e): undefined reference to
>> `python_enabled'
>> gobjZi686/ex_cmds2.o:ex_cmds2.c:(.text+0x797b): undefined reference to
>> `python_enabled'
>> gobjZi686/ex_cmds2.o:ex_cmds2.c:(.text+0x7a0b): more undefined
>> references to `python_enabled' follow
>> collect2.exe: error: ld returned 1 exit status
>> make: *** [gvim.exe] Error 1
>> Error by compiling gvim.exe
>> --------------------
>>
>> I'm using python 2.7.14 from https://www.python.org/, and on
>> Make_cyg_ming.mak I changed DYNAMIC_PYTHON=yes to DYNAMIC_PYTHON=no.
>>
>> The same errors happen if I try to compile vim 8.1.137 with statically
>> linked python 3.6.3.
>
> If you want to enable both if_python and if_python3, you cannot statically
> link with python 2 or 3.
>
> Regards,
> Ken Takata

I compiled it only with statically linked python3 and it works. Thanks.

Regards,

--
Cesar

--
--
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