LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-06-2004, 04:31 PM   #1
feetyouwell
Member
 
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
itsme86
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.
  


Reply


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 Java...help 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 05:40 AM.

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