www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - core.stdc.fenv on Win64

reply "Trass3r" <un known.com> writes:
The implementation doesn't seem to be correct.
Could anybody versed in this look into it?

version(Windows)
{
     private extern __gshared fenv_t _FE_DFL_ENV;
     fenv_t* FE_DFL_ENV = &_FE_DFL_ENV;
}

There's no such symbol in the libcmt and it fails to link.


http://sourceforge.net/p/mingw/mingw-org-wsl/ci/master/tree/include/fenv.h#l87
Jul 16 2014
parent Walter Bright <newshound2 digitalmars.com> writes:
On 7/16/2014 3:42 PM, Trass3r wrote:
 The implementation doesn't seem to be correct.
 Could anybody versed in this look into it?

 version(Windows)
 {
      private extern __gshared fenv_t _FE_DFL_ENV;
      fenv_t* FE_DFL_ENV = &_FE_DFL_ENV;
 }

 There's no such symbol in the libcmt and it fails to link.


 http://sourceforge.net/p/mingw/mingw-org-wsl/ci/master/tree/include/fenv.h#l87
That code is for Win32 and was never ported properly for Win64. Please file a bugzilla issue for it.
Jul 16 2014