I’m using the latest copy of the book (just arrived today!) and I’m having an issue getting the examples of using readLine to work in XCode…
I’ve added the libreadline.dylib to my project in Build Phases, however when I try to compile even the simple example the editor complains:
const char *name = readline(NULL); Implicit declaration of function ‘readLine’ is invalid in C99 , Incompatible integer to pointer conversion initializing ‘const char *’ with an expression of type ‘int’
Any help would be appreciated!!