Discussion:
is deprecated error
nkengr@engr
2017-11-23 12:30:57 UTC
Permalink
how can I do with this, I was integrating AOMDV from github, it gives me
this error, when inserting command ./waf

../src/aomdv/examples/aomdv.cc: In member function ‘void
AomdvExample::CreateDevices()’:
../src/aomdv/examples/aomdv.cc:176:33: warning: ‘static ns3::WifiHelper
ns3::WifiHelper::Default()’ is deprecated [-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
from ../src/aomdv/examples/aomdv.cc:29:
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc:176:42: warning: ‘static ns3::WifiHelper
ns3::WifiHelper::Default()’ is deprecated [-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
from ../src/aomdv/examples/aomdv.cc:29:
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc: In member function ‘void
AomdvExample::InstallInternetStack()’:
../src/aomdv/examples/aomdv.cc:189:3: error: ‘AomdvHelper’ was not declared
in this scope
AomdvHelper aomdv;
^
../src/aomdv/examples/aomdv.cc:192:32: error: expected primary-expression
before ‘)’ token
stack.SetRoutingHelper (aomdv); // has effect on the next Install ()
^
../src/aomdv/examples/aomdv.cc:201:12: error: expected primary-expression
before ‘.’ token
aomdv.PrintRoutingTableAllAt (Seconds (8), routingStream);
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Tommaso Pecorella
2017-11-23 13:57:58 UTC
Permalink
The first error can be fixed by substituting the lines with:
WifiHelper wifi;

The second one is, probably, a consequence of the first one.

T.
Post by ***@engr
how can I do with this, I was integrating AOMDV from github, it gives me
this error, when inserting command ./waf
../src/aomdv/examples/aomdv.cc: In member function ‘void
../src/aomdv/examples/aomdv.cc:176:33: warning: ‘static ns3::WifiHelper
ns3::WifiHelper::Default()’ is deprecated [-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc:176:42: warning: ‘static ns3::WifiHelper
ns3::WifiHelper::Default()’ is deprecated [-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc: In member function ‘void
../src/aomdv/examples/aomdv.cc:189:3: error: ‘AomdvHelper’ was not
declared in this scope
AomdvHelper aomdv;
^
../src/aomdv/examples/aomdv.cc:192:32: error: expected primary-expression
before ‘)’ token
stack.SetRoutingHelper (aomdv); // has effect on the next Install ()
^
../src/aomdv/examples/aomdv.cc:201:12: error: expected primary-expression
before ‘.’ token
aomdv.PrintRoutingTableAllAt (Seconds (8), routingStream);
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
nkengr@engr
2017-11-23 14:50:43 UTC
Permalink
thank you for quick reply, the code I using from gitub is done with ns3-24,
but I am using ns3-27, I get many errors, do I have to install the same
version as the first one so that the integration will succeed, If you know
about implementation of AOMDV for ns3? please help, unless I should go to
ns2 b/c there it is integrated to it. but the thing is I am using 3D Gauss
Markov mobility model, there in ns2 no such thing but only 2D from
bonnmotion. please if I can take a trace file for mobility from ns3 to ns2,
if all things are not working? thank you in advance
Post by Tommaso Pecorella
WifiHelper wifi;
The second one is, probably, a consequence of the first one.
T.
Post by ***@engr
how can I do with this, I was integrating AOMDV from github, it gives me
this error, when inserting command ./waf
../src/aomdv/examples/aomdv.cc: In member function ‘void
../src/aomdv/examples/aomdv.cc:176:33: warning: ‘static ns3::WifiHelper
ns3::WifiHelper::Default()’ is deprecated [-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc:176:42: warning: ‘static ns3::WifiHelper
ns3::WifiHelper::Default()’ is deprecated [-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc: In member function ‘void
../src/aomdv/examples/aomdv.cc:189:3: error: ‘AomdvHelper’ was not
declared in this scope
AomdvHelper aomdv;
^
../src/aomdv/examples/aomdv.cc:192:32: error: expected primary-expression
before ‘)’ token
stack.SetRoutingHelper (aomdv); // has effect on the next Install ()
^
../src/aomdv/examples/aomdv.cc:201:12: error: expected primary-expression
before ‘.’ token
aomdv.PrintRoutingTableAllAt (Seconds (8), routingStream);
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Tommaso Pecorella
2017-11-23 21:39:35 UTC
Permalink
Forward-port the model. If you know a BIT of C++ it's really easy.

T.
Post by ***@engr
thank you for quick reply, the code I using from gitub is done with
ns3-24, but I am using ns3-27, I get many errors, do I have to install the
same version as the first one so that the integration will succeed, If you
know about implementation of AOMDV for ns3? please help, unless I should go
to ns2 b/c there it is integrated to it. but the thing is I am using 3D
Gauss Markov mobility model, there in ns2 no such thing but only 2D from
bonnmotion. please if I can take a trace file for mobility from ns3 to ns2,
if all things are not working? thank you in advance
Post by Tommaso Pecorella
WifiHelper wifi;
The second one is, probably, a consequence of the first one.
T.
Post by ***@engr
how can I do with this, I was integrating AOMDV from github, it gives me
this error, when inserting command ./waf
../src/aomdv/examples/aomdv.cc: In member function ‘void
../src/aomdv/examples/aomdv.cc:176:33: warning: ‘static ns3::WifiHelper
ns3::WifiHelper::Default()’ is deprecated [-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc:176:42: warning: ‘static ns3::WifiHelper
ns3::WifiHelper::Default()’ is deprecated [-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc: In member function ‘void
../src/aomdv/examples/aomdv.cc:189:3: error: ‘AomdvHelper’ was not
declared in this scope
AomdvHelper aomdv;
^
../src/aomdv/examples/aomdv.cc:192:32: error: expected
primary-expression before ‘)’ token
stack.SetRoutingHelper (aomdv); // has effect on the next Install ()
^
../src/aomdv/examples/aomdv.cc:201:12: error: expected
primary-expression before ‘.’ token
aomdv.PrintRoutingTableAllAt (Seconds (8), routingStream);
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
nkengr@engr
2017-11-24 05:11:21 UTC
Permalink
how can I do that? tell me the general procedures
Post by Tommaso Pecorella
Forward-port the model. If you know a BIT of C++ it's really easy.
T.
Post by ***@engr
thank you for quick reply, the code I using from gitub is done with
ns3-24, but I am using ns3-27, I get many errors, do I have to install the
same version as the first one so that the integration will succeed, If you
know about implementation of AOMDV for ns3? please help, unless I should go
to ns2 b/c there it is integrated to it. but the thing is I am using 3D
Gauss Markov mobility model, there in ns2 no such thing but only 2D from
bonnmotion. please if I can take a trace file for mobility from ns3 to ns2,
if all things are not working? thank you in advance
Post by Tommaso Pecorella
WifiHelper wifi;
The second one is, probably, a consequence of the first one.
T.
Post by ***@engr
how can I do with this, I was integrating AOMDV from github, it gives
me this error, when inserting command ./waf
../src/aomdv/examples/aomdv.cc: In member function ‘void
../src/aomdv/examples/aomdv.cc:176:33: warning: ‘static ns3::WifiHelper
ns3::WifiHelper::Default()’ is deprecated [-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc:176:42: warning: ‘static ns3::WifiHelper
ns3::WifiHelper::Default()’ is deprecated [-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc: In member function ‘void
../src/aomdv/examples/aomdv.cc:189:3: error: ‘AomdvHelper’ was not
declared in this scope
AomdvHelper aomdv;
^
../src/aomdv/examples/aomdv.cc:192:32: error: expected
primary-expression before ‘)’ token
stack.SetRoutingHelper (aomdv); // has effect on the next Install ()
^
../src/aomdv/examples/aomdv.cc:201:12: error: expected
primary-expression before ‘.’ token
aomdv.PrintRoutingTableAllAt (Seconds (8), routingStream);
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Tommaso Pecorella
2017-11-25 11:08:26 UTC
Permalink
Very simple:


1. Compile.
2. Find an error.
3. Look at the RELEASE_NOTE and CHANGES.html files for clues
4. Search the Internet.
5. Fix the error.


T.
Post by ***@engr
how can I do that? tell me the general procedures
Post by Tommaso Pecorella
Forward-port the model. If you know a BIT of C++ it's really easy.
T.
Post by ***@engr
thank you for quick reply, the code I using from gitub is done with
ns3-24, but I am using ns3-27, I get many errors, do I have to install the
same version as the first one so that the integration will succeed, If you
know about implementation of AOMDV for ns3? please help, unless I should go
to ns2 b/c there it is integrated to it. but the thing is I am using 3D
Gauss Markov mobility model, there in ns2 no such thing but only 2D from
bonnmotion. please if I can take a trace file for mobility from ns3 to ns2,
if all things are not working? thank you in advance
Post by Tommaso Pecorella
WifiHelper wifi;
The second one is, probably, a consequence of the first one.
T.
Post by ***@engr
how can I do with this, I was integrating AOMDV from github, it gives
me this error, when inserting command ./waf
../src/aomdv/examples/aomdv.cc: In member function ‘void
../src/aomdv/examples/aomdv.cc:176:33: warning: ‘static
ns3::WifiHelper ns3::WifiHelper::Default()’ is deprecated
[-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc:176:42: warning: ‘static
ns3::WifiHelper ns3::WifiHelper::Default()’ is deprecated
[-Wdeprecated-declarations]
WifiHelper wifi = WifiHelper::Default ();
^
In file included from ./ns3/ht-wifi-mac-helper.h:25:0,
from ./ns3/wifi-module.h:41,
./ns3/wifi-helper.h:239:21: note: declared here
static WifiHelper Default (void);
^
../src/aomdv/examples/aomdv.cc: In member function ‘void
../src/aomdv/examples/aomdv.cc:189:3: error: ‘AomdvHelper’ was not
declared in this scope
AomdvHelper aomdv;
^
../src/aomdv/examples/aomdv.cc:192:32: error: expected
primary-expression before ‘)’ token
stack.SetRoutingHelper (aomdv); // has effect on the next Install ()
^
../src/aomdv/examples/aomdv.cc:201:12: error: expected
primary-expression before ‘.’ token
aomdv.PrintRoutingTableAllAt (Seconds (8), routingStream);
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Loading...