John Marriott wrote:

> On 25-Oct-2021 06:35, Bram Moolenaar wrote:
> > Patch 8.2.3562
> > Problem:    Cannot add color names.
> > Solution:   Add the v:colornames dictionary. (Drew Vogel, closes #8761)
> > Files:      Filelist, READMEdir/README_extra.txt, nsis/gvim.nsi,
> >              runtime/colors/README.txt, runtime/colors/lists/csscolors.vi=
> m,
> >              runtime/colors/lists/default.vim, runtime/doc/eval.txt,
> >              runtime/doc/gui_w32.txt, runtime/doc/message.txt,
> >              runtime/doc/os_haiku.txt, runtime/doc/syntax.txt,
> >              runtime/doc/usr_06.txt, src/Makefile, src/evalvars.c,
> >              src/gui_haiku.cc, src/highlight.c, src/gui.c, src/job.c,
> >              src/proto/highlight.pro, src/proto/term.pro, src/term.c,
> >              src/vim.h, src/globals.h, src/errors.h,
> >              src/testdir/test_highlight.vim
> >
> >
> After this patch, mingw64 (gcc 11.2.0) throws this link error for a=20
> non-GUI build:
> <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.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:=20
> objnative/highlight.o:highlight.c:(.text+0x162): undefined reference to=20
> `load_default_colors_lists'
> collect2.exe: error: ld returned 1 exit status
> make: *** [Make_cyg_ming.mak:1089: vim.exe] Error 1
> make: Target 'all' not remade because of errors.
> </snip>
> 
> load_default_colors_lists() is only defined if FEAT_EVAL and either=20
> FEAT_GUI or FEAT_TERMGUICOLORS or FEAT_PROTO are defined.
> 
> The attached patch tries to fix it.

Thanks, I'll include that.  Next time please use a context or unified
diff, makes it a bit easier to understand the patch.

-- 
You can tune a file system, but you can't tuna fish
                                                        -- man tunefs

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211025093729.D4F42C80053%40moolenaar.net.

Raspunde prin e-mail lui