Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-06-2004, 04:31 PM   #1
Registered: Dec 2003
Location: NC, US
Distribution: Novell Linux Eval (2.6.5)
Posts: 240

Rep: Reputation: 30
readline compile

I included readline function & library in my program, i know i need to include the external library when compile my program, how to use gcc to compile program that contains readline? thanks
Old 10-06-2004, 06:01 PM   #2
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
Add -lreadling to the compile line:

e.g.: gcc -Wall prog.c -o prog -lreadline
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Method readLine() in KissDaFeetOfSean Programming 1 09-09-2005 12:41 AM
Postgresql 7.4.2 with Readline on Debian 3.0 jockster666 Linux - Software 1 03-07-2005 04:17 PM
Question about Readline Library sasha_baranov Programming 0 08-23-2004 03:39 PM
PostgreSQL 7.4 can't find readline durring ./configure docbrazen Linux - Software 2 01-09-2004 08:53 AM
readline problem when compiling dark_forests Linux - Software 0 10-12-2003 04:13 PM

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration