If you need to force ANSI compliance, you need to use
gcc -ansi -pedantic-errors. If you do that in dev-cpp,
in a simple "hello world" program, you get errors. If
you use gcc without dev-cpp, it works fine.
Code:
int main() {
printf("hello world");
return 0;
}
Compiler output:
Compiler: Default compiler
Executing gcc.exe...
gcc.exe "C:\Documents and
Settings\Acerola\Desktop\tewste\main.c" -o
"C:\Documents and
Settings\Acerola\Desktop\tewste\main.exe" -pedantic-
errors -ansi -g3 -I"C:\Dev-Cpp\include" -L"C:\Dev-
Cpp\lib" -g3
In file included from C:/Dev-Cpp/include/stdio.h:26,
from C:\Documents and
Settings\Acerola\Desktop\tewste\main.c:1:
C:/Dev-Cpp/include/stddef.h:6:2: #include_next is a
GCC extension
In file included from C:/Dev-Cpp/include/stdio.h:28,
from C:\Documents and
Settings\Acerola\Desktop\tewste\main.c:1:
C:/Dev-Cpp/include/stdarg.h:6:2: #include_next is a
GCC extension
In file included from C:\Documents and
Settings\Acerola\Desktop\tewste\main.c:1:
C:/Dev-Cpp/include/stdio.h:330: error: ISO C90 does
not support `long long'
Execution terminated
Logged In: YES
user_id=1020705
If you remove the include path from
tools -> compiler options -> directories -> c includes
it works.