LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 01: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, 04: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, 04: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 06:19 PM
Async Sockets! JanusPaul Linux - Software 0 11-13-2004 06:03 PM
Another Doom3 error (async) thegoonden Linux - Games 5 10-08-2004 04:41 AM
DTR on async port iftiuk Linux - Software 0 05-19-2004 03:15 PM
sync and async serial of Routers whepin General 0 11-06-2002 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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