John Marriott wrote:
> mingw64 (gcc 11.3.0) link fails if FEAT_PROP_POPUP is defined but=20
> FEAT_QUICKFIX and FEAT_SPELL are not with this error message:
> <snip>
> gcc -I. -Iproto -DWIN32 -DWINVER=3D0x0603 -D_WIN32_WINNT=3D0x0603=20
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO=20
> -pipe -march=3Dnative -Wall -O3 -fomit-frame-pointer -freg-struct-return=20
> -fpie -fPIE -Wl,-nxcompat,-dynamicbase -municode -s=C2=A0 -o vim.exe=20
> objnative/alloc.o objnative/arabic.o objnative/arglist.o=20
[...]
> objnative/xpatience.o objnative/iscygpty.o -lkernel32 -luser32 -lgdi32=20
> -ladvapi32 -lcomdlg32 -lcomctl32 -lnetapi32 -lversion -lole32 -luuid
> d:/users/john/documents/software/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mi=
> ngw32/11.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:=20
> objnative/popupwin.o:popupwin.c:(.text+0xd96): undefined reference to=20
> `ml_append_buf'
> d:/users/john/documents/software/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mi=
> ngw32/11.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:=20
> objnative/popupwin.o:popupwin.c:(.text+0xdf5): undefined reference to=20
> `ml_append_buf'
> d:/users/john/documents/software/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mi=
> ngw32/11.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:=20
> objnative/popupwin.o:popupwin.c:(.text+0xe4a): undefined reference to=20
> `ml_append_buf'
> collect2.exe: error: ld returned 1 exit status
> make: *** [Make_cyg_ming.mak:1107: vim.exe] Error 1
> make: Target 'all' not remade because of errors.
>
> The attached patch seems to fix it.
I'll include it, thanks.
--
hundred-and-one symptoms of being an internet addict:
209. Your house stinks because you haven't cleaned it in a week.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///