Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I m working on the energy model of leach protocol, and for that using Ns-2.29 with mannasim. I have added few lines in battery.cc and battery.h ( which is used for sensor nodes), and run make command, my code compiles perfectly without any error, then I commented the changes made and run make command, now I m getting this error. I haven't access or changed any of these files but don't know why I m getting this. I'll be grateful if anyone can help in resolving this issue.
Regards,
Najma
classifier/classifier-bst.cc
classifier/classifier-bst.cc:62:17: error: ump.h: No such file or directory
classifier/classifier-bst.cc: In member function ‘virtual void MCastBSTClassifier::recv(Packet*, Handler*)’:
classifier/classifier-bst.cc:158: error: ‘hdr_ump’ was not declared in this scope
classifier/classifier-bst.cc:158: error: ‘ump’ was not declared in this scope
classifier/classifier-bst.cc:158: error: ‘hdr_ump’ is not a class or namespace
make: *** [classifier/classifier-bst.o] Error 1
Hi, thanks for the reply, i have checked it and found that adc folder is somehow moved to another folder which i simply don't know how. i simply change the location of the folder and now not getting that error, but something else which i simply don't understand what it is b/c i have been working with ns-2 from last 1 year and have never experienced these issues. please guide now how to resolve the new error hundreds of lines which i m encountering when run make command. i m pasting the last few lines of the error.
regard,
najma
accessPointDiffApp.cc.text._ZN24NRSimpleAttributeFactoryIfE4findEPSt6vectorIP11NRAttributeSaIS3_EE PN9__gnu_cxx17__normal_iteratorIPS3_S5_EE[NRSimpleAttributeFactory<float>::find(std::vector<NRAttribute*, std::allocator<NRAttribute*> >*, __gnu_cxx::__normal_iterator<NRAttribute**, std::vector<NRAttribute*, std::allocator<NRAttribute*> > >*)]+0x3a): undefined reference to `NRAttribute::find_key_from(int, std::vector<NRAttribute*, std::allocator<NRAttribute*> >*, __gnu_cxx::__normal_iterator<NRAttribute**, std::vector<NRAttribute*, std::allocator<NRAttribute*> > >, __gnu_cxx::__normal_iterator<NRAttribute**, std::vector<NRAttribute*, std::allocator<NRAttribute*> > >*)'
mannasim/diffusion/accessPointDiffApp.o.rodata._ZTI18AccessPointDiffApp[typeinfo for AccessPointDiffApp]+0x18): undefined reference to `typeinfo for DiffApp'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
root@ubuntu:/home/najmaismat/ns-allinone-2.29/ns-2.29#
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 14 .
If "gcc-4.1" is still available on the old Ubuntu 10.04,
the install command is : $ sudo apt-get install g++-4.1
( 'gcc-4.1' is automatically installed as dependency.)
Note : ns2 is for a 32bits OS (i686) not 64bits (x86_64),
though some ns2 versions and some patches will work on 64bits.
But with a reduced functionality. (Inferior validate result.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.