私は私のシェル内の履歴機能のため、このコードを使用しています: http://cc.byexamples.com/20080613/gnu-readline-how-to-keep-a-history-list-of-entered-command-lines/ が、私はこの使用してGCCをコンパイルするとき、私は例がコンパイル行にこのエラーにGNU readlineの履歴機能
$ gcc filename.c
/tmp/ccay2CgM.o: In function `main':
rl.c:(.text+0x9): undefined reference to `rl_abort'
rl.c:(.text+0x13): undefined reference to `rl_bind_key'
rl.c:(.text+0x1d): undefined reference to `readline'
rl.c:(.text+0x61): undefined reference to `add_history'
collect2: ld returned 1 exit status
$
あなたはそれをコンパイルするために使用している正確なコマンドを追加することができますか? – cube