Hi all,

2018/10/15 Mon 7:53:19 UTC+9 Cesar wrote:
> On 14/10/2018 02:48 p.m., Bram Moolenaar wrote:
>  >
>  > Cesar Romani wrote:
>  >>
>  >> Compiling on Windows 7 with MinGW, I get:
>  >>
>  >> --------------------
>  >> [...]
>  >> gcc -c -Iproto -DWIN32 [...] auto/if_perl.c -o gobjZi686/if_perl.o
>  >> if_perl.xs:38:10: fatal error: vim.h: No such file or directory
>  >>    #include "vim.h"
>  >>             ^~~~~~~
>  >> compilation terminated.
>  >> make: *** [gobjZi686/if_perl.o] Error 1
>  >> Error by compiling gvim.exe
>  >> --------------------
>  >
>  > Does it help to add -Iauto to the build command?
>  >
> 
> With '-I auto' I get the same error, but adding -I., as Heptite said,
> fixes it.

Sorry for that.
I also confirmed that the following patch fixes it:

diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -1060,7 +1060,7 @@ auto/if_perl.c:           if_perl.xs typemap
             $(PERLTYPEMAP) if_perl.xs -output $@
 
 $(OUTDIR)/if_perl.o:   auto/if_perl.c $(INCL)
-       $(CC) -c $(CFLAGS) auto/if_perl.c -o $(OUTDIR)/if_perl.o
+       $(CC) -c $(CFLAGS) -I. auto/if_perl.c -o $(OUTDIR)/if_perl.o
 
 
 $(OUTDIR)/if_ruby.o:   if_ruby.c $(INCL)


I have forgotten that our CI doesn't test MinGW with Perl.

Regards,
Ken Takata

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