[Ns- bugs] [Bug 2703] Error on compilaton of aodv-routing-protocol.cc

90 views
Skip to first unread message

nishtha kapoor

unread,
Jun 14, 2018, 8:46:53 AM6/14/18
to ns-3-...@googlegroups.com

Hello,

Can anyone help me how to remove the error. I have installed NS-3.28 and was trying to run the aodv-routing-protocol example that was copied to scratch from src/aodv/model/aodv-routing-protocol.

 However, when I run this, I get the following error:

[2703/2778] Linking build/scratch/aodv-packet

/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':

(.text+0x20): undefined reference to `main'

collect2: error: ld returned 1 exit status

Waf: Leaving directory `/home/nishtha/ns3/ns-allinone-3.28/ns-3.28/build'

Build failed

-> task in 'aodv-packet' failed (exit status 1):

{task 140587722263760: cxxprogram aodv-packet.cc.2.o -> aodv-packet}

['/usr/bin/g++', '-pthread', '-pthread', 'scratch/aodv-packet.cc.2.o', '-o', '/home/nishtha/ns3/ns-allinone-3.28/ns-3.28/build/scratch/aodv-packet', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-lns3.28-aodv-debug', '-lns3.28-test-debug', '-lns3.28-dsr-debug', '-lns3.28-mesh-debug', '-lns3.28-netanim-debug', '-lns3.28-wave-debug', '-lns3.28-wifi-debug', '-lns3.28-lr-wpan-debug', '-lns3.28-lte-debug', '-lns3.28-spectrum-debug', '-lns3.28-antenna-debug', '-lns3.28-applications-debug', '-lns3.28-csma-layout-debug', '-lns3.28-dsdv-debug', '-lns3.28-flow-monitor-debug', '-lns3.28-internet-apps-debug', '-lns3.28-wimax-debug', '-lns3.28-point-to-point-layout-debug', '-lns3.28-nix-vector-routing-debug', '-lns3.28-olsr-debug', '-lns3.28-sixlowpan-debug', '-lns3.28-tap-bridge-debug', '-lns3.28-internet-debug', '-lns3.28-bridge-debug', '-lns3.28-point-to-point-debug', '-lns3.28-mpi-debug', '-lns3.28-traffic-control-debug', '-lns3.28-buildings-debug', '-lns3.28-propagation-debug', '-lns3.28-uan-debug', '-lns3.28-mobility-debug', '-lns3.28-energy-debug', '-lns3.28-config-store-debug', '-lns3.28-csma-debug', '-lns3.28-fd-net-device-debug', '-lns3.28-virtual-net-device-debug', '-lns3.28-topology-read-debug', '-lns3.28-network-debug', '-lns3.28-stats-debug', '-lns3.28-core-debug', '-lrt', '-lsqlite3', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-lpangocairo-1.0', '-latk-1.0', '-lcairo', '-lgdk_pixbuf-2.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpango-1.0', '-lgobject-2.0', '-lglib-2.0', '-lfontconfig', '-lfreetype', '-lxml2']-lpangocairo-1.0', '-latk-1.0', '-lcairo', '-lgdk_pixbuf-2.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpango-1.0', '-lgobject-2.0', '-lglib-2.0', '-lfontconfig', '-lfreetype', '-lxml2'] '-lns3.28-stats-debug', '-lns3.28-core-debug', '-lrt', '-lsqlite3', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-lpangocairo-1.0', '-latk-1.0', '-lcairo', '-lgdk_pixbuf-2.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpango-1.0', '-lgobject-2.0', '-lglib-2.0', '-lfontconfig', '-lfreetype', '-lxml2']

The same type of error I am getting on compilation of dsdv-routing-protocol example copied to  scratch folder from src/dsdv/model/dsdv-routing-protocol.

Please let me know what is going wrong?

Thanks,

Nishtha



Konstantinos

unread,
Jun 15, 2018, 9:20:46 AM6/15/18
to ns-3-users
Hi Nishitha,

I'm replying here but the answer applies to all your posts with the similar question, i.e for AODV and DSDV...
The file you try to run is NOT the scenario file, it is the model that implements the logic of the algorithm.
If you want to run a scenario that uses AODV or DSDV or any other protocol, just check the /examples folder in that module. 

For more details, please refer to the documentation and the tutorial. 

Regards
K

nishtha kapoor

unread,
Jun 15, 2018, 3:37:53 PM6/15/18
to ns-3-...@googlegroups.com

Hi Konstantinos,
Thanks for the reply. Now I have come to   
know this. I have gone through the tutorial. 
Regards,
Nishtha


--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages