Dear Mohamed Thanks a lot for your response. Now my library is working.
Best Regards, ______________________________________________________ Reza Karimi, M.Sc. Faculty of Electrical and Computer Engineering (ECE) K.N.Toosi University of Technology Tehran, IRAN. -----Original Message----- From: Abdelshafy, Mohamed [mailto:ma...@hw.ac.uk] Sent: Sunday, June 08, 2014 3:24 PM To: Reza Karimi Subject: RE: [ns] Adding libgcrypt library in NS2 Dear Reza You have to add the library (the last word in last line) as follows: LIB = \ -L/u1/pg/ma814/ns-allinone-2.35/tclcl-1.20 -ltclcl -L/u1/pg/ma814/ns-allinone-2.35/otcl-1.14 -lotcl -L/u1/pg/ma814/ns-allinone-2.35/lib -ltk8.5 -L/u1/pg/ma814/ns-allinone-2.35/lib -ltcl8.5 \ -lXext -lX11 \ -lnsl -ldl \ -lm -lm -lgcrypt Mohamed ________________________________________ From: Reza Karimi [rezakarim...@gmail.com] Sent: 07 June 2014 21:07 To: Abdelshafy, Mohamed Cc: ns-users@isi.edu Subject: RE: [ns] Adding libgcrypt library in NS2 Dear Mohamed That is, I have to add my library path like below: ------------------- LIB = \ @V_LIBS@ \ @V_LIB_X11@ \ @V_LIB@ \ -lm @LIBS@ /root/mylibrarypath # -L@libdir@ \ ---------------------- Am I right? Nothing more? Yours sincerely -----Original Message----- From: Abdelshafy, Mohamed [mailto:ma...@hw.ac.uk] Sent: Saturday, June 07, 2014 9:15 PM To: Reza Karimi Subject: RE: [ns] Adding libgcrypt library in NS2 Hi You have to add -lgcrypt next to -lm in makefile. ________________________________________ From: ns-users-boun...@isi.edu [ns-users-boun...@isi.edu] on behalf of Reza Karimi [rezakarim...@gmail.com] Sent: 07 June 2014 15:54 To: ns-users@ISI.EDU Subject: [ns] Adding libgcrypt library in NS2 Hi I am going to use "libgcrypt" , http://www.gnu.org/software/libgcrypt/, in NS2 but I don't know how. Any help or example will be so appreciated. Thanks in advance for your help. ______________________________________________________ Reza Karimi, M.Sc. Faculty of Electrical and Computer Engineering (ECE) K.N.Toosi University of Technology Tehran, IRAN. ----- Sunday Times Scottish University of the Year 2011-2013 Top in the UK for student experience Fourth university in the UK and top in Scotland (National Student Survey 2012) We invite research leaders and ambitious early career researchers to join us in leading and driving research in key inter-disciplinary themes. Please see www.hw.ac.uk/researchleaders for further information and how to apply. Heriot-Watt University is a Scottish charity registered under charity number SC000278. ----- Sunday Times Scottish University of the Year 2011-2013 Top in the UK for student experience Fourth university in the UK and top in Scotland (National Student Survey 2012) We invite research leaders and ambitious early career researchers to join us in leading and driving research in key inter-disciplinary themes. Please see www.hw.ac.uk/researchleaders for further information and how to apply. Heriot-Watt University is a Scottish charity registered under charity number SC000278.