bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] readline/readline.h isn't self-sufficient and fails when


From: Yuri
Subject: [Bug-readline] readline/readline.h isn't self-sufficient and fails when included alone
Date: Sun, 13 Oct 2019 08:58:53 -0700
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

Compiling this on FreeBSD 12 fails:

#include <readline/readline.h>
#include <readline/history.h>


main() {
}


Command: c++ -o r r.cpp -I /usr/local/include/


Failure message:

In file included from r.cpp:2:
In file included from /usr/local/include/readline/readline.h:36:
/usr/local/include/readline/rltypedefs.h:71:36: error: unknown type name 'FILE'
typedef int rl_getc_func_t PARAMS((FILE *));
                                   ^


It apparently doesn't have FILE defined due to a missing include statement.


Yuri





reply via email to

[Prev in Thread] Current Thread [Next in Thread]