LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-27-2005, 04:15 AM   #1
skicy
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu/Debian
Posts: 10

Rep: Reputation: 0
Question Asyncronous I/O problem?


I just start the linux system programing. But I get a problem. When I use the aio_read or others asyncronous functions, there will be an error when compiling. The error is " Undefined reference to aio_read".
Thanks.
 
Old 11-27-2005, 09:00 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Try adding "-lrt" to your link command
 
Old 11-28-2005, 12:10 AM   #3
skicy
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu/Debian
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks very much! But can you tell me what's the meaning of "-lrt".
 
Old 11-28-2005, 12:26 AM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
"-lrt" means "include /usr/lib/librt.XX in the program link".

"librt" stands for "real time library". I don't know whether 'real time" is a good name or not, but that happens to be where the AIO stuff goes.

'Hope that helps .. PSM
 
Old 11-28-2005, 03:02 AM   #5
skicy
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu/Debian
Posts: 10

Original Poster
Rep: Reputation: 0
hehe! Thank you
 
  


Reply



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
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration