[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MSVC fails to compile floor.c with -fp:strict
From: |
Michael Goffioul |
Subject: |
MSVC fails to compile floor.c with -fp:strict |
Date: |
Thu, 23 Feb 2012 09:28:18 +0000 |
Hi,
I encountered a compilation error with MSVC when compiling floor.c in
strict floating-point mode (-fp:strict). The error is:
"error C2099: initializer is not a constant"
The error is triggered by the initializer for the constant variable
TWO_MANT_DIG and is documented here:
http://msdn.microsoft.com/en-us/library/t801az8a(v=vs.80).aspx
I'm not sure this is something to be fixed in gnulib, but I thought it
was worth reporting the issue.
Michael.
- MSVC fails to compile floor.c with -fp:strict,
Michael Goffioul <=