Sunday, July 08, 2012

Disable "warning as errors" in ns-3

When you're including third party open source code to the ns-3, very often you will be seeing at lot of "Warning treated as error". That's quite annoying when you don't brother to fix them all (usually when time is a concern). So a quick fix comes to your mind must be - forget warnings, just let me through, please. Here is how you can do that:

CXXFLAGS="-Wall -g -O0" ./waf configure


ref: https://www.nsnam.org/wiki/index.php/HOWTO_build_old_versions_of_ns-3_on_newer_compilers

Monday, June 04, 2012

configure proxy for mercurial

There are two quick way of doing it:

1: If you are temporarily behind a proxy, simply,  hg pull --config http_proxy.host=proxyhost:port. If your proxy requires username and password, add --config http_proxy.user=username --config http_proxy.passwd=password as well.

2: If you are behind a proxy, you may want to add the following to .hg/hgrc

[http_proxy]
host=proxyhost:port
passwd=password
user=username