[Ns-developers] Extenral Library Dependency

craigdo@ee.washington.edu craigdo at ee.washington.edu
Tue Jul 15 14:46:02 PDT 2008


> > In the case of pthreads, you need to link with librt.  One 
> way to do  
> > this is
> > to add something like,
> >
> >    variant_env.append_value('LINKFLAGS', '-L/lib -lrt')

> Aren't there some systems that require -lpthread?
> 
> George

Posix clocks are in librt, and librt depends on libpthread; so pthreads come
for free in this case.  Yes, if you just want pthreads you can just link to
libpthread.

I guess I wasn't explicit enough in describing why I need which external
library; but the larger issue of how to deal with external libraries remains
a question mark.

-- Craig

[ ... ]




More information about the Ns-developers mailing list