[ns] add library to configure.in or makefile
sarym binome
binome_ini at hotmail.com
Tue Feb 17 09:46:02 PST 2009
hi everybody
i add a function in a AODV protocol, this function use a openssl library (cryptography library ) when i run ./configure and make , i have error cause it didn't recognize the code
aodv/aodv.o: In function `AODV::AODV(int)':
aodv.cc:(.text+0x266f): undefined reference to `OpenSSL_add_all_digests'
aodv.cc:(.text+0x2693): undefined reference to `RSA_generate_key'
aodv.cc:(.text+0x26a9): undefined reference to `RSAPublicKey_dup'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
i try this code before in simple program, i compile it with
g++ -lssl -lcrypto simple.cc -o simple_exec and i'd no problem!
therefore i suppose that i have to add -lssl and -lcrypto to my configure.in but i have no idea how and where i can add this lib
something like this in configure.in (or maybe makefile.in)
AC_CHECK_LIB([ssl], [SSL_library_init], [LIBS="$LIBS -lssl -lcrypto"])
somebody help me please
best regard
_________________________________________________________________
Découvrez Windows Live Spaces et créez votre site Web perso en quelques clics !
http://spaces.live.com/signup.aspx
More information about the Ns-users
mailing list