Ken Takata wrote:
> 2018/10/15 Mon 8:29:46 UTC+9 Ken Takata wrote: > > 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. > > Is it better to remove -I. from CFLAGS in Make_mvc.mak and add it only where > needed like Make_cyg_ming.mak? I think it doesn't hurt. Perhaps it's also needed for the xdiff files? -- hundred-and-one symptoms of being an internet addict: 204. You're being audited because you mailed your tax return to the IRC. /// 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.
