LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-07-2003, 12:33 PM   #1
mspilo
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
Async I/O link prob


I'm trying to create a program that uses aio functions.

I am using RedHat 9 with the latest glibc updates.

When I compile & link the program I get an error from the linker that aio_read as well as all the other aio_xx routines are "undefined references"

I can't figure out what other library I need to link in. Help!
 
Old 08-07-2003, 03:27 PM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Try the libaio ...
 
Old 08-07-2003, 03:43 PM   #3
mspilo
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, vladkrack, there's no libaio on the Redhat 9 dist.

But I found them! They are in librt just like GNU docs say the should be

for anyone else who runs into this: to link with librt add -lrt on the gcc command line.
 
  


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
async with udev ItsNotMe Linux - Newbie 1 04-19-2005 05:19 PM
Async Sockets! JanusPaul Linux - Software 0 11-13-2004 05:03 PM
Another Doom3 error (async) thegoonden Linux - Games 5 10-08-2004 03:41 AM
DTR on async port iftiuk Linux - Software 0 05-19-2004 02:15 PM
sync and async serial of Routers whepin General 0 11-06-2002 07:38 PM


All times are GMT -5. The time now is 02:07 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