How to link external lib?

83 views
Skip to first unread message

everys...@gmail.com

unread,
Feb 28, 2015, 4:24:43 AM2/28/15
to ns-3-...@googlegroups.com
Hi,all:
  I am trying to use external polarssl in LTE module to do some test. For I am a newbee to Ns3, i searched and viewed a lot of post here related to
linking external lib.
  Thanks to a lot ot guys whoes post help me a lot, but some more clarification is still needed in my understanding.
 
  1, Two posts below let me know how to confiure external lib for module:
  https://groups.google.com/forum/?fromgroups#!searchin/ns-3-users/external$20library|sort:relevance/ns-3-users/IFyWICR1JVc/2tXOOHKrH8sJ
  http://shieldroute.blogspot.com/2012/08/extending-ns3-with-your-module-and.html#comment-form

  However, besides solution how to link a external lib, can Laurynas or Andrew B kindly give out some more solution that how to link a non-standard libpath(such as linking external lib is in /usr/local/temp/lib ) in our wscript?

 2, This post below tell me how to configure external lib for example:
 https://www.nsnam.org/wiki/index.php/HOWTO_use_ns-3_with_other_libraries
 
 However,  can author kindly give out a completely wscript
example in order to let newbee quickly know where to add the extension in wscript.

 Thanks
  BR

Message has been deleted

Jian Zhu

unread,
Mar 1, 2015, 10:09:25 PM3/1/15
to ns-3-...@googlegroups.com
What's more, it worked when linking external shared lib in module using solution by Laurynas or Andrew B, but some failure is occured when linking static lib(i.e. *.a suffix)
The build error message includes:
....recomplie using -fPIC
....
 
If it is my misunderstanding, please kindly let me know as well, thanks.

Reply all
Reply to author
Forward
0 new messages