On 05/08/2017 09:59 AM, [email protected] wrote:
> Hi,
> 
> math.h prototypes a number of _Decimal32, _Decimal64 and_Decimal128 
> functions - eg:
> 
> _Decimal64 __cdecl expd64(_Decimal64 _X);
> 
> But when I try to compile (gcc -o d64.exe d64.c):
> 
> /*******************************/
> /* d64.c */
> #include <math.h>
> 
> int main(void) {
> 
> _Decimal64 x = 2.3DD, ret;
> 
> ret = expd64(x);
> 
> return 0;
> }
> 
> /*******************************/
> 
> All I get is:
> 
> C:\Users\sisyphus\AppData\Local\Temp\cc2vb9go.o:d64.c:(.text+0x2e): 
> undefined reference to `expd64'
> collect2.exe: error: ld returned 1 exit status
> 
> What else is needed ?
> 

Unfortunately none of the math code is even implemented.

The only part that somewhat works is the decimal float printf code,
which is buried under --enable-experimental in mingw-w64-crt. It isn't
exactly widely tested either.


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to