So I didn’t modify the chapter 8 challenge and copied it to a new program with the following code:
#import <Foundation/Foundation.h>
#import <readline/readline.h>
int main(int argc, const char * argv[])
{
@autoreleasepool {
NSLog(@"Who is cool?");
const char *num = readline(NULL);
NSString *name = [NSString stringWithUTF8String:num];
NSLog(@"%@ is cool", name);
}
return 0;
}
I see others use the same code I made but mine won’t work. I get some errors building mentioning readline link issues. What am I missing here?