I am having difficulty with the linker when it comes to compiling an example program that uses the POSIX aio library (like aio_read (), aio_write (), etc.) on Linux.
I am running Ubuntu with a 2.6 kernel and used the apt-get utility to install libaio. But even if I contact the aio library, the compiler still gives me linker errors.
root@ubuntu:/home
/tmp/cc5OE58r.o: In function `main':
aio.cc:(.text+0x156): undefined reference to `aio_read'
aio.cc:(.text+0x17b): undefined reference to `aio_error'
aio.cc:(.text+0x191): undefined reference to `aio_return'
collect2: ld returned 1 exit status
Where are all these aio_x functions actually defined, if not in the libaio.a library?
Charles Salvia
source
share