problem when including readline.h
roberthuff at rcn.com
Sun Feb 13 22:56:14 UTC 2011
Chip Camden writes:
> > I'm writing a C program which, for various reasons, has the
> > warning level turned _way_ up.
> > I'm now getting this:
> > /usr/include/readline/readline.h:336: warning: redundant redeclaration of 'rl_make_bare_keymap'
> > /usr/include/readline/keymaps.h:74: warning: previous declaration of 'rl_make_bare_keymap' was here
> > and more like it.
> > Other than turning down the warning level, what's wrong and how
> > do I fix it?
> Both keymaps.h and readline.h declare rl_make_bare_keymap as an external
> function. Perhaps you shouldn't be including both files?
Except I don't. The include list:
No second "keymap.h" visible.
More information about the freebsd-questions