Re: [Dev-C++] stdio.h:330: error: ISO C++ does not support `long long'
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Alfred P. R. <al...@ya...> - 2005-02-03 17:45:13
|
I'd say get rid of -pedantic. Dev-Cpp supports cast long long just fine at 64 bits. That the ISO C++ standard doesn't support that cast, is a true statement that has no meaning for your code's compilation. Though I use -Wall and a few other warnings, I use neither -ansi nor -pedantic due to the reasons in your message. ANSI compliant programs will compile without those switches. Read the gcc(1) man page: -ansi Support all ANSI standard C programs. This turns off certain features of GNU C that are in-compatible with ANSI C, such as the asm, inline and typeof keywords, and predefined macros such as unix and vax that identify the type of system you are using. It also enables the undesirable and rarely used ANSI tri-graph feature, and disallows `$' as part of identif- iers. The alternate keywords __asm__, __extension__, __in- line__ and __typeof__ continue to work despite `-ansi'. You would not want to use them in an ANSI C program, of course, but it is useful to put them in header files that might be included in compilations done with `-ansi'. Alternate predefined macros such as __unix__ and __vax__ are also available, with or without `-ansi'. The `-ansi' option does not cause non-ANSI programs to be rejected gratuitously. For that, `-pedantic' is re-quired in addition to `-ansi'. The preprocessor predefines a macro __STRICT_ANSI__ when you use the `-ansi' option. Some header files may notice this macro and refrain from declaring certain functions or defining certain macros that the ANSI standard doesn't call for; this is to avoid interfering with any programs that might use these names for other things. Mahmoud Kassem <mah...@gm...> wrote: Hello When I added: -ansi -pedantic -Wall in the compiler options it gave me this error: C:/My-Dev-Cpp/include/stdio.h:330: error: ISO C++ does not support `long long' Regards, Mahmoud Kassem <snip> Alfred P. Reaud |