Re: how does aio_write() work



nass wrote:

may i go ahead and ask why do i get a linker error 'undefined
reference to aio_write'
since i have #include <aio.h> in my class's header file ?

#include directives are for the preprocessor and compiler.

You need to tell your linker where to find aio_write.

http://sourceware.org/cgi-bin/cvsweb.cgi/libc/rt/?cvsroot=glibc

Add -lrt
.



Relevant Pages

  • Re: Library Link error.
    ... > That's not the compiler giving the error, it's the linker. ... > reference it in your project. ... >> I do have header file included in the application and the header has the ... >> BOOL Stretch(CDC* pDC, CPoint ptDest, CSize size, BOOL ...
    (microsoft.public.pocketpc.multimedia)
  • Re: system constants in COBOL
    ... and never get to the linker. ... What is worse the extra code will be a memory reference. ... 01 RETURN-STATUS PIC S9COMP. ... STL R17, -8 ...
    (comp.os.vms)
  • Re: system constants in COBOL
    ... and never get to the linker. ... What is worse the extra code will be a memory reference. ... 01 RETURN-STATUS PIC S9COMP. ... STL R17, -8 ...
    (comp.os.vms)
  • Re: Include statements and compiler linking
    ... Why is it that the header file doesnt need to be linked ... linker not knowing the PATH to the header file. ... -there is function (e.g printf), ... You tell the compiler how to use the code ...
    (comp.lang.c)
  • Re: static variables discarded by the VS.NET2003 linker
    ... Linker/Input/Force Symbol Reference, ... In general the problem with VS.NET 2003 linker is that it will discard ... would be accessed via that global container. ... and make the linker to include the needed object files without forcing ...
    (microsoft.public.vc.language)