LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-27-2009, 08:25 AM   #1
nitishjaiswal
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
problem with executing c++ file for wireless networks, working with ns2


[root@esquare markovian error model]# gcc loss-policy.cc -c loss
gcc: loss: No such file or directory
loss-policy.cc:9:20: error: random.h: No such file or directory
loss-policy.cc:15: error: expected class-name before ‘{’ token
loss-policy.cc:17: error: ‘Packet’ has not been declared
loss-policy.cc:23: error: expected class-name before ‘{’ token
loss-policy.cc:26: error: ISO C++ forbids declaration of ‘TclObject’ with no type
loss-policy.cc:26: error: expected ‘;’ before ‘*’ token
loss-policy.cc:31: error: expected `;' before ‘}’ token
loss-policy.cc: In constructor ‘UniformLossyLinkMatcher::UniformLossyLinkMatcher()’:
loss-policy.cc:25: error: class ‘UniformLossyLinkMatcher’ does not have any field named ‘Matcher’
loss-policy.cc: In constructor ‘UniformLossyLink::UniformLossyLink()’:
loss-policy.cc:35: error: ‘link_real’ was not declared in this scope
loss-policy.cc: At global scope:
loss-policy.cc:38: error: expected constructor, destructor, or type conversion before ‘(’ token
[root@esquare markovian error model]#

because of this error i am not able to proceed in my project work.
Thanks in advance
 
Old 02-28-2009, 07:48 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
We need more details about what you are doing. To be honest, this looks like a compiling problem, not a problem with a wireless network.
 
Old 02-28-2009, 11:39 PM   #3
nitishjaiswal
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Hi hangdog,
Actually i am doing project on "Improving throughput over 3G wireless networks. I am working in NS2 simulator. While compiling above mentioned file, i got above errors. I installed NS2 perfectly. One header file is missing ("random.h"). Any body who has NS2 background please reply. Thanks in advance

Last edited by nitishjaiswal; 02-28-2009 at 11:41 PM.
 
Old 03-26-2009, 05:34 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Moved: This thread is more suitable in Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
ns2 Wireless simulation Help md_imranullah Programming 1 06-13-2012 02:19 AM
How to compile the c++ file in NS2 hermy85 Linux - Newbie 1 12-05-2008 03:55 AM
problem executing file tamoneya Linux - Newbie 1 02-24-2008 08:02 PM
Problem in executing .run file (updating PB) art.love Linux - Software 6 02-01-2008 01:48 PM
unable to scan for networks period with working wireless WOP1337 Linux - Wireless Networking 2 03-31-2007 03:24 AM


All times are GMT -5. The time now is 07:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration