From: | Jan-Erik Karlsson |
Date: | 30 May 2001 at 15:43:57 |
Subject: | Re: C Compilers |
Hello, David
On 30-May-01, you wrote:
DB > Hi,
DB >
DB > I have just installed VBCC (v0.7) as i was using DICE (v3.16) but DICE
DB > wouldn't accept floating points using scanf, but VBCC does.
DB >
DB > #include <stdio.h>
DB >
DB > int main(void)
DB > {
DB > int num;
DB > float f;
DB >
DB > printf("Enter an integer: ");
DB > scanf("%d", &num);
DB >
DB > printf("Enter a floating point number: ");
DB > scanf("%f", &f);
DB >
DB > printf("%d ", num);
DB > printf("%f", f);
DB > printf("\n");
DB >
DB > return 0;
DB > }
DB >
DB >
DB > The above example wouldn't work under DICE even when linking the
DB > math.library, but VBCC seems to have no probs with it!
DB >
DB > What does everyone else use as their compiler ?
DB >
I'm using SAS/C 7.00/6.59, GCC 2.95.3, StormC 4
the only one(s) that's pretty much guaranteed to be upto the ISO standards
in C/C++ is GCC and StormC 4 (stormC 4 is using GCC)
stormC4 with stlport 4 is pretty much one of the best with regards to
compliance to the ISO C++ standard
With kind regards,
Jan-Erik Karlsson
Quote carefully and read all ADMIN:README mails
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/