[Ns-developers] Compilation on MinGW-x64
vincent@clarinet.u-strasbg.fr
vincent at clarinet.u-strasbg.fr
Wed Apr 28 00:03:05 PDT 2010
Hi Josh,
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
one (name);
- srandom()/random() do not exists on MinGW but can be replaced by
rand()/srand().
Here a patch that address these problems. If OK I will commit it.
Best regards,
--
Seb
> 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
>> warning
>> (which turns into error) about using -fPIC. On Windows 32-bit,
>> compilation
>> runs fine.
>>
>> I find in
>> waf-1.5.13-4340ef810f7db5d61c618fdf96cb5695/wafadmin/Tools/gxx.py
>> in function gxx_modifier_win32:
>>
>> if dest_arch=='x86':
>> v['shlib_CXXFLAGS']=['-DPIC']
>>
>> 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
>> this
>> change.
>>
>> Regards,
>> --
>> Seb
>>
>>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ns-3-mingw-fix.diff
Type: application/octet-stream
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
mailing list