LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-21-2012, 02:47 AM   #1
edison_0927
LQ Newbie
 
Registered: Feb 2012
Posts: 13

Rep: Reputation: Disabled
some problems when using ns2


is there anyone who can help me to fix this problem ?

/lazrp/lazrp.h:1016: error: ISO C++ forbids declaration of ‘LAZRPAgent’ with no type


thank you very much

---------- Post added 05-21-12 at 01:48 AM ----------

i do not know where to define the agent ,who can help thank you!
 
Old 05-21-2012, 05:16 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Please tell which "ns-allinone-2.xx" it's about.

/lazrp/lazrp.h : Unknown file. Where did you get it ? ?
? A LAZRP protocol ?

And : Please specify your Ubuntu version by every question, like Ubuntu 10.04
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html

.
 
Old 05-21-2012, 07:18 PM   #3
edison_0927
LQ Newbie
 
Registered: Feb 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
yes i write it myself,i try to compile it , but get this error,

the version of ns2 is 2.33


thank you for you reply
 
Old 05-23-2012, 04:31 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
The command : cat /etc/issue
... will reply with the Ubuntu version.


Except for rewriting your code, you could try using an older g++,
like g++-4.1 .
 
Old 05-23-2012, 06:16 AM   #5
edison_0927
LQ Newbie
 
Registered: Feb 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
thank you for your reply i have fixed it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems in Installation of NS2.27 on Ubuntu 9.10 Scofield Linux - General 7 03-15-2013 04:47 AM
some problems when using ns2 edison_0927 Programming 3 02-19-2012 05:51 AM
Problems with installation of NS2.27 on Ubutu10.04 sawyer Linux - General 4 01-27-2011 03:00 AM
installation problems in ns2.34 in centos bgprasuna Linux - Software 1 07-22-2010 08:46 AM
ns2 problems shalinipuri10@gmail.com Linux - Newbie 0 04-10-2009 03:11 PM


All times are GMT -5. The time now is 06:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration