[ndnSIM] How to reference new .o files in examples/wscript.
Anil Jangam
anilj.mailing at gmail.com
Sat Nov 14 14:37:50 PST 2015
Hi,
ndnSIM/examples/wscript file is as follows:
1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil;
coding: utf-8; -*-
2
3 from waflib import Utils, Logs
4
5 def build(bld):
6 # This may be necessary for visualizer to work
7 all_modules = [mod[len("ns3-"):] for mod in
bld.env['NS3_ENABLED_MODULES']]
8
9 examples = bld.path.ant_glob(['*.cpp'], excl=['*-mpi.cpp'])
10 if 'NS3_MPI' in bld.env['DEFINES_MPI']:
11 examples += bld.path.ant_glob(['*-mpi.cpp'])
12
13 for i in examples:
14 name = str(i)[:-len(".cpp")]
15 obj = bld.create_ns3_program(name, all_modules)
16 obj.source = [i] + bld.path.ant_glob(['%s/**/*.cpp' % name])
I have added a new example file code in the ndnSIM/examples directory,
which uses some of the objects in newly added code to ndnSIM. Right now, I
am getting some linking errors where the definitions are available in the
newly added code. How do I reference those .o files through above wscript
file? What changes are required?
/anil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20151114/993e8621/attachment.html>
More information about the ndnSIM
mailing list