> Where do I need to put my helper files or how do I need to configure
> NS3 so that my Helper gets built and made available to my scripts AND
> doesn't get treated like a script itself?
I'm not sure that mine is the best way for adding modules to NS3, but
I chose to create my own subdirectory for my project's code. So,
suppose to have your project directory named "yourprojectdir" with
files "yourfile1.cc", "yourfile2.cc", "yourfile1.h" and "yourfile2.h",
then you have to create a "wscript" file in that directory with the
following content:
def build(bld):
module = bld.create_ns3_module('yourprojectdir', ['simulator', 'common'])
module.source = [
'yourfile1.cc',
'yourfile2.cc',
]
headers = bld.new_task_gen('ns3header')
headers.module = 'yourprojectdir'
headers.source = [
'yourfile1.h',
'yourfile2.h',
]
This makes your project a module of NS3, embedding and sharing all
your code inside libns3.so. I repeat, I'm not sure this is the best
way to do it, but it works well for me. Hope this helps.
Regards
Andrea
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.