[ndnSIM] How to run custom-app customized

Jose Velasco velasco.lopez at gmail.com
Mon Jul 7 10:24:30 PDT 2014


I have created a copy from files custom-app.h, custom-app.cc and 
ndn-simple-with-custom-app.cc in scratch directory I have renamed the 
files to custom-app1.h and .cc, and the classes to CustomApp1, when I 
try to run I see the following error:

root at debian:~/ndnSIM/ns-3# ./waf --run=prueba
Waf: Entering directory `/root/ndnSIM/ns-3/build'
[1022/2363] cxx: scratch/custom-app1.cc -> build/scratch/custom-app1.cc.3.o
[1023/2363] cxx: scratch/prueba.cc -> build/scratch/prueba.cc.1.o
[2272/2363] cxxprogram: build/scratch/prueba.cc.1.o -> build/scratch/prueba
[2288/2363] cxxprogram: build/scratch/custom-app1.cc.3.o -> 
build/scratch/custom-app1
/usr/lib/gcc/i486-linux-gnu/4.7/../../../i386-linux-gnu/crt1.o: In 
function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/root/ndnSIM/ns-3/build'
Build failed
  -> task in 'custom-app1' failed (exit status 1):
         {task 153262796: cxxprogram custom-app1.cc.3.o -> custom-app1}
['/usr/bin/g++', '-pthread', '-Wl,-z,relro', 
'scratch/custom-app1.cc.3.o', '-o', 
'/root/ndnSIM/ns-3/build/scratch/custom-app1', '-Wl,-Bstatic', 
'-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-L.', '-L.', '-L.', 
'-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', 
'-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', 
'-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', 
'-L.', '-L.', '-L.', '-L.', '-L/usr/lib', '-L/usr/lib', 
'-lns3-dev-test-debug', '-lns3-dev-csma-layout-debug', 
'-lns3-dev-point-to-point-layout-debug', '-lns3-dev-netanim-debug', 
'-lns3-dev-lte-debug', '-lns3-dev-spectrum-debug', 
'-lns3-dev-antenna-debug', '-lns3-dev-aodv-debug', 
'-lns3-dev-dsdv-debug', '-lns3-dev-dsr-debug', '-lns3-dev-mesh-debug', 
'-lns3-dev-olsr-debug', '-lns3-dev-csma-debug', '-lns3-dev-wimax-debug', 
'-lns3-dev-applications-debug', '-lns3-dev-virtual-net-device-debug', 
'-lns3-dev-uan-debug', '-lns3-dev-energy-debug', 
'-lns3-dev-flow-monitor-debug', '-lns3-dev-ndnSIM-debug', 
'-lns3-dev-visualizer-debug', '-lns3-dev-nix-vector-routing-debug', 
'-lns3-dev-tap-bridge-debug', '-lns3-dev-internet-debug', 
'-lns3-dev-bridge-debug', '-lns3-dev-point-to-point-debug', 
'-lns3-dev-mpi-debug', '-lns3-dev-wifi-debug', 
'-lns3-dev-buildings-debug', '-lns3-dev-propagation-debug', 
'-lns3-dev-mobility-debug', '-lns3-dev-config-store-debug', 
'-lns3-dev-emu-debug', '-lns3-dev-fd-net-device-debug', 
'-lns3-dev-topology-read-debug', '-lns3-dev-network-debug', 
'-lns3-dev-stats-debug', '-lns3-dev-core-debug', '-lrt', 
'-lboost_graph-mt', '-lboost_system-mt', '-lboost_signals-mt', 
'-lboost_filesystem-mt', '-lpython2.7']

what is the problem?

ciao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20140707/3a5f7e79/attachment.html>


More information about the ndnSIM mailing list