LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-22-2018, 10:35 PM   #1
ariefhi
LQ Newbie
 
Registered: Aug 2018
Posts: 9

Rep: Reputation: Disabled
set node in network simulator 2


hi friends
i have got issue when i add skript base this link https://askubuntu.com/questions/6875...o-sleep-in-ns2

i has been added script in mac-802_11.cc and mac-802_11.h (in attachment)

In file included from ./mac/wireless-phy.h:45:0,
from ./mac/mac-802_11.h:53,
from trace/cmu-trace.cc:48:
trace/cmu-trace.cc: In static member function ‘static void CMUTrace::calculate_broadcast_parameters()’:
./mobile/propagation.h:44:13: error: expected unqualified-id before numeric constant
#define PI 3.1415926535897
^
trace/cmu-trace.cc:1692:9: note: in expansion of macro ‘PI’
double PI,freq,lambda,crossover_dist;
^
trace/cmu-trace.cc:1693:5: error: lvalue required as left operand of assignment
PI = 3.14159265359;
^
trace/cmu-trace.cc:1695:2: error: ‘freq’ was not declared in this scope
freq = atof(tcl.result());
^
trace/cmu-trace.cc:1696:2: error: ‘lambda’ was not declared in this scope
lambda = 3.0e8/freq;
^
trace/cmu-trace.cc:1697:2: error: ‘crossover_dist’ was not declared in this scope
crossover_dist = (4 * PI * h * h) / lambda;
^
make: *** [trace/cmu-trace.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

anyone help me to solve this
 
  


Reply

Tags
ns2



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
rhel 2 node cluster: resources do not move to second node when node halted tapuhi Linux - Software 1 03-01-2015 10:41 AM
node recovery when the node becomes fault by using another node to replace it jerinc Linux - Wireless Networking 0 02-21-2014 05:44 PM
How to transfer the services from node 1 to node 2 ,if node 1 is directly turned off sankarg304 Linux - Server 1 12-12-2012 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:43 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
Open Source Consulting | Domain Registration