I
Ioannis Vranos
Hi all,
Is long long supposed to be supported in all C99 implementations?If yes is
it supposed to be 64 bit at least? GCC says that it supports long long, but
i got this:
#include <stdio.h>
#include <limits.h>
int main()
{
printf("Maximum value for long long: %lld\n", LLONG_MAX);
printf("Maximum value for long: %ld\n", LONG_MAX);
}
C:\c>\mingw\bin\gcc -v
Reading specs from /mingw/bin/../lib/gcc-lib/mingw32/3.3.1/specs
Configured with:
.../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --en
able
-languages=c,c++,f77,objc,ada,java --disable-win32-registry --disable-shared
--e
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enabl
e-ja
va-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchr
oniz
ation
Thread model: win32
gcc version 3.3.1 (mingw special 20030804-1)
C:\c>\mingw\bin\gcc -std=c99 -pedantic-errors -O3 -Wall temp.c -o temp
temp.c: In function `main':
temp.c:6: error: `LLONG_MAX' undeclared (first use in this function)
temp.c:6: error: (Each undeclared identifier is reported only once
temp.c:6: error: for each function it appears in.)
C:\c>
Any ideas?
Regards,
Ioannis Vranos
Is long long supposed to be supported in all C99 implementations?If yes is
it supposed to be 64 bit at least? GCC says that it supports long long, but
i got this:
#include <stdio.h>
#include <limits.h>
int main()
{
printf("Maximum value for long long: %lld\n", LLONG_MAX);
printf("Maximum value for long: %ld\n", LONG_MAX);
}
C:\c>\mingw\bin\gcc -v
Reading specs from /mingw/bin/../lib/gcc-lib/mingw32/3.3.1/specs
Configured with:
.../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --en
able
-languages=c,c++,f77,objc,ada,java --disable-win32-registry --disable-shared
--e
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enabl
e-ja
va-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchr
oniz
ation
Thread model: win32
gcc version 3.3.1 (mingw special 20030804-1)
C:\c>\mingw\bin\gcc -std=c99 -pedantic-errors -O3 -Wall temp.c -o temp
temp.c: In function `main':
temp.c:6: error: `LLONG_MAX' undeclared (first use in this function)
temp.c:6: error: (Each undeclared identifier is reported only once
temp.c:6: error: for each function it appears in.)
C:\c>
Any ideas?
Regards,
Ioannis Vranos