Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-27-2009, 08:25 AM   #1
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 -c loss
gcc: loss: No such file or directory error: random.h: No such file or directory error: expected class-name before ‘{’ token error: ‘Packet’ has not been declared error: expected class-name before ‘{’ token error: ISO C++ forbids declaration of ‘TclObject’ with no type error: expected ‘;’ before ‘*’ token error: expected `;' before ‘}’ token In constructor ‘UniformLossyLinkMatcher::UniformLossyLinkMatcher()’: error: class ‘UniformLossyLinkMatcher’ does not have any field named ‘Matcher’ In constructor ‘UniformLossyLink::UniformLossyLink()’: error: ‘link_real’ was not declared in this scope At global scope: 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
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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
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
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


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) 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 08:59 AM.

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