Deprecated header warning

481 views
Skip to first unread message

Sameer

unread,
Jun 6, 2015, 7:51:21 AM6/6/15
to ns-3-...@googlegroups.com
I had made a small modification to a few core files NS 3.15. Everything was working fine till today. I ran waf again and bam i get this error

 
In file included from /usr/include/c++/5.1.0/ext/hash_map:60:0,
                 from ./ns3/sgi-hashmap.h:24,
                 from ./ns3/network-module.h:57,
....

error
: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Werror=cpp]


What I dont get it till a couple of days ago everything was fine.... and now suddenly this

I use Arch Linux. Could it be bacuse of an upgrade to gcc or something

This is driving me crazy!

Any help will be appreciated!

Sameer Gurung

unread,
Jun 6, 2015, 8:20:13 AM6/6/15
to ns-3-...@googlegroups.com
Ok this could be that Arch gcc is upgraded to 5.1 which uses gnu11 by default.

Apparently one needs to add -std=gnu89 command-line option to revert back to the earlier standard by using CFLAGS

Anyone can help me with how I can pass this to the build system in NS3.

Thanks you all

--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/FhxEnNQ2JtA/unsubscribe.
To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

pdbarnes

unread,
Jun 6, 2015, 12:27:37 PM6/6/15
to ns-3-...@googlegroups.com
I think you need to add CFLAGS=... (and/or CXXFLAGS=...) to your configure command:

$ ./waf configure CFLAGS...

Peter

Sameer

unread,
Jun 6, 2015, 11:07:20 PM6/6/15
to ns-3-...@googlegroups.com
Thank you will try that!

Matt Anonyme

unread,
Jun 9, 2015, 6:32:22 AM6/9/15
to ns-3-...@googlegroups.com
I wonder if it works with CFLAGS after the command ? Shouldn't it be before like:
$ CFLAGS=... ./waf configure

Sameer Gurung

unread,
Jun 9, 2015, 6:37:33 AM6/9/15
to ns-3-...@googlegroups.com
The before method works!

Reply all
Reply to author
Forward
0 new messages