Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2011 17:56:12 -0500
From:      Robert Huff <roberthuff@rcn.com>
To:        Chip Camden <sterling@camdensoftware.com>
Cc:        questions@freebsd.org
Subject:   Re: problem when including readline.h
Message-ID:  <19800.24972.729085.774767@jerusalem.litteratus.org>
In-Reply-To: <20110213223959.GF2807@libertas.local.camdensoftware.com>
References:  <19800.23295.265146.528435@jerusalem.litteratus.org> <20110213223959.GF2807@libertas.local.camdensoftware.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <sys/types.h>
#include <ctype.h>
#include <limits.h>
#include <mysql/mysql.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/param.h>
#include <unistd.h>
#include <readline/readline.h>
#include <readline/history.h>

	No second "keymap.h" visible.


				Robert Huff




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19800.24972.729085.774767>