LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem with executing c++ file for wireless networks, working with ns2 (https://www.linuxquestions.org/questions/linux-software-2/problem-with-executing-c-file-for-wireless-networks-working-with-ns2-707989/)

nitishjaiswal 02-27-2009 08:25 AM

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

Hangdog42 02-28-2009 07:48 AM

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.

nitishjaiswal 02-28-2009 11:39 PM

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

david_ross 03-26-2009 05:34 AM

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


All times are GMT -5. The time now is 06:54 AM.