Re: decimal round off issue




Quoth "Peter J. Holzer" <hjp-usenet2@xxxxxx>:

Is there a "standard" C library on Windows which gcc has to use or does
it use the glibc? I suspect it's the former (I've seen similar results
with Microsofts C compiler).

Huh? glibc is Linux- (well, and Hurd-) only. gcc on Win32 uses
MSVCRT.DLL, which used to be part of MSVC6 and nowadays is part of
Windows, or Internet Explorer, or something. Later versions of MSVC
insist on using their own versions of the C library, which cause
Interesting problems if you have a DLL compiled against one loaded into
an EXE compiled against another. (This is one reason why it's
particularly important to compile modules with the correct compiler on
Win32.)

Ben

.



Relevant Pages

  • Re: Different code behaviour in Unix & Windows
    ... Please post compiler versions for both Windows and Linux. ... gcc --version will pop the version number for gcc. ... algorithm guarantees that the final result will fit into `a`. ...
    (comp.lang.c)
  • Re: gcc-toolchain for freescales MC9S12X (68HCS12) ??
    ... dissatisfied by it's lack of decent syntax-checking and have no windows ... gcc provides better syntax checking than any other compiler I have tried. ... which is a reasonable price on Windows (but absurdly four times the price on Linux - and I doubt they support PPC Linux). ...
    (comp.arch.embedded)
  • Re: Compiler for Windows (Open Source)
    ... >> This is the only compiler in this half of the list. ... >> headers and libraries that allow you to develop native Windows ... >> applications using the GNU software development tools (gcc, as, ... It's a good complement to gcc on Windows systems. ...
    (comp.lang.c)
  • Re: gcc-toolchain for freescales MC9S12X (68HCS12) ??
    ... dissatisfied by it's lack of decent syntax-checking and have no windows ... i'd rather use some free compiler available for my rather ... I don't believe there is a gcc port for the 68HCS12 - ... times the price on Linux - and I doubt they support PPC Linux). ...
    (comp.arch.embedded)
  • Re: Windows C Question
    ... Decided to do some programming after a long hiatus. ... MS C++ compiler. ... Some group with 'windows' or 'microsoft' in its name. ... Thanks Chuck, I hate to sound ignorant, but what is GCC? ...
    (comp.programming)