Skip to content
Advertisement

Undefined symbols for architecture x86_64: “_read_line”, referenced from: _insert in inventory-82371b.o

Here is the callback with -v and warnings suppressed.

JavaScript

Here it is without warnings suppressed. But I don’t believe that they are causing the issue.

JavaScript

Here is the code. It is a program for a very simple data base from a text book.

I truly believe my problem is with the compiling. It’s been a while since I’ve used gcc and can’t remember what I used. I won’t be able to see the compile commands as I’m out right now.

I also have the supporting readline.h and readline.c files. If you need those just ask.

I’m also using running this on UNIX in OS X Yosemite.

JavaScript

Advertisement

Answer

I also have the supporting readline.h and readline.c files. If you need those just ask.

You do not appear to be compiling readline.c at all. Try:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement