[Ns-developers] Compilation on MinGW-x64
vincent at clarinet.u-strasbg.fr
Wed Apr 28 00:03:05 PDT 2010
Unfortunately, I still got the -fPIC error. I see in our waf's gxx.py that
it still has the check for "32-bit only" that remove the -fPIC.
By the way I have found 3 compilation problems in utils/test-runner.cc:
- missing limits.h for PATH_MAX;
- mkdir on Windows does not take two parameters (name and rights) but just
- srandom()/random() do not exists on MinGW but can be replaced by
Here a patch that address these problems. If OK I will commit it.
> I know this thread is a little dated, but have you tried the most
> recent ns-3-dev version with mingw? Does it still error out? We
> recently updated to a newer WAF.
> Josh Pelkey
> ns-3.8 Release Manager
> 2010/3/24 Sébastien Vincent <vincent at clarinet.u-strasbg.fr>:
>> Hi all,
>> I try to build ns-3 on Windows 7 64-bit with MinGW-x64 and I have a
>> (which turns into error) about using -fPIC. On Windows 32-bit,
>> runs fine.
>> I find in
>> in function gxx_modifier_win32:
>> if dest_arch=='x86':
>> If I remove the "if" test, now compilation succeed.
>> I am not a waf expert but I think we should rebuild the waf binary with
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 965 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20100428/94107dea/ns-3-mingw-fix.obj
More information about the Ns-developers