Readline Library header file missing

Viewed 33

FIXED: i download readline through https://tiswww.case.edu/php/chet/readline/rltop.html followed the install guide and it worked just fine

I deleted the readline.h file(not on purpose), i tried reinstalling it through brew, i even installed it through ports but now it just doesn't recognize it, leaving me with this message:

``implicit declaration of function 'readline' is invalid in C99 [-Werror,-Wimplicit-function-declaration]´´

in my .h file i have the following: #include <readline/readline.h>

include <readline/history.h>

and on my makefile i have (CC) -o $(@) $^ -I$(incs) -I .brew/opt/readline/include -lreadline

0 Answers
Related