I want to install values.h on cygwin. I am running Windows OS.I am compiling a code in C ,I need values.h and I am getting this error

fatal error: values.h: No such file or directory

So how can I install values.h on cygwin

2

Best Answer


You don't "install" header files. You just need to tell the compiler where they are. Usually that's the -I or /I option.

values.h is an old UNIX standard file it wasdocumented in issues 1 and 2 of the X/Open Portability Guide.float.h was standardized in ANSI C in 1989 and had become widelyused before then. values.h was withdrawn from the standard inissue 3 of the XPG in 1989, and never made it into POSIX at all.

In short, values.h has been obsolete for many years - any codewhich wants to be portable should be changed to use the float.hidentifiers instead. If anyone wanted to do it, I can't imagineany harm in adding a values.h to the cygwin distribution which #defines the values.h identifiers to their float.h equivalents,but it would be better if the software which uses values.h werechanged to not do so.

Source : https://www.cygwin.com/ml/cygwin/2001-01/msg00132.html