[chord] How to use chord as a library ?

Ivan Santarelli ivan.santarelli at students.cefriel.it
Tue May 24 06:14:40 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have the same problems, but I need to link to chord libraries from a
makefile of a different project, in a totally different folder...  Is it
the same case of yours?
Could you send me the relevant parts of your Makefile?

Another question: in order to compile chord I didn't install sfs, I only
built it; could this lead to bigger troubles?

Thanks in advance,
Ivan.

ÎäÑÞ¾ü wrote:
> hi,every one :
> 	 I've tried to use chord as a library guided by "/hack.html". The
example in the webpage was embeded into my test, and compiled
successfully. But the error occured in the link stage.
>
> 	the following is from my test makefile:
> test_dht : $(OBJS)
>         $(CC) -o test_dht $(CFLAGS) $(OBJS) -L/usr/local/lib -lsfs
- -L/usr/local/lib/sfs -lasync -lsvc -larpc -lsfscrypt -lsfsmisc
- -L/home/wuyj/sfsnet/dhash -ldhashclient -dhash -L/home/wuyj/sfsnet/utils
- -lutil -L/home/wuyj/sfsnet/merkle -lmerkle -L/home/wuyj/sfsnet/dhc -ldhc
- -L/home/wuyj/sfsnet/sfsrodb -lsfsrodb -L/usr/lib -lgmp
>

 	
>my test directory is outside the sfsnet/ , can makefile only cover the
test/ directory ? Why the functions such as "xdr_sfs_pubkey2(XDR*,
void*)" can't be found ?
> 	I hope to get your help, thank you !
>
> 				Wu Yanjun
>  ¡¡¡¡¡¡¡¡¡¡¡¡¡¡wuyanjun at mprc.pku.edu.cn
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-05-06




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCkv6QeoqcljMWsKoRApM4AKCNrm1sKpJZTElKl0a7AkpPRA4bPwCgoGde
4Z+pVdPq68G77SbJ87Cw/Bc=
=Nt36
-----END PGP SIGNATURE-----



More information about the chord mailing list