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



_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to