Hi all,
I know MinGW is not officially supported for ns-3, but I've read
reports that it works (at least partially) so I wanted to give it a
shot and see if it works for my purposes before I resort to using a
Linux VM or something to run ns-3.
Unfortunately, I am not able to get it to even start compiling with
MinGW and was wondering if anyone has any insights.
If I run a straight compile (just a plain "waf"), it tries to compile
using Microsoft's MSVC and fails (though it does get pretty far in the
build process).
Here, it is mentioned that you need to configure waf to choose MinGW's
g++:
http://www.nsnam.org/wiki/index.php/User_FAQ#How_to_configure_mingw
When I run the command:
waf configure --check-cxx-compiler=g++
I get this output:
Checking for program CL : C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\BIN\x86_amd64\CL.exe
Checking for program CL : C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\BIN\CL.exe
Checking for program CL : C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\CL.exe
Checking for program CL : C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\BIN\x86_amd64\CL.exe
Checking for program CL : C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\BIN\CL.exe
Checking for program CL : C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\CL.exe
Checking for program CL : C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\CL.exe
Checking for program LINK : C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\LINK.exe
Checking for program LIB : C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\LIB.exe
Checking for program MT : C:\Program Files
(x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\MT.exe
Checking for program RC : C:\Program Files
(x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\RC.exe
Checking for msvc : ok
Checking for program g++ or c++ : ['C:\\Program Files (x86)\
\Microsoft Visual Studio 10.0\\VC\\BIN\\amd64\\CL.exe']
wscript:218: error: could not configure a cxx compiler!
I don't get why it looks like it chose CL.exe on the last line there,
when it was looking for g++. Yes, g++ is on the PATH and it works if
I execute it by itself.
For clarification purposes, I am using NS-3 version 3.10.
Any insights appreciated. Thanks!