Re: problem when including readline.h
> From owner-freebsd-questi...@freebsd.org Sun Feb 13 17:00:08 2011 > From: Robert Huff > Date: Sun, 13 Feb 2011 17:56:12 -0500 > To: Chip Camden > Cc: questi...@freebsd.org > Subject: Re: problem when including readline.h > > > 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. You have to chase through all the includes to see what is included by the files you directly include. It's pretty sure to be sometthing in the '' directory. > The include list: > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > No second "keymap.h" visible. > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: problem when including readline.h
Quoth Robert Huff on Sunday, 13 February 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: > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > No second "keymap.h" visible. > > > Robert Huff > Ah -- readline.h includes keymaps.h. You're SOL. -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpkyuFu4hGnI.pgp Description: PGP signature
Re: problem when including readline.h
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: #include #include #include #include #include #include #include #include #include #include #include #include No second "keymap.h" visible. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: problem when including readline.h
Quoth Robert Huff on Sunday, 13 February 2011: > 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? > > Respectfully, > > > Robert Huff > Both keymaps.h and readline.h declare rl_make_bare_keymap as an external function. Perhaps you shouldn't be including both files? -- Sterling (Chip) Camden | sterl...@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com pgpuscF2EbCUX.pgp Description: PGP signature
problem when including readline.h
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? Respectfully, Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"