jkss - 2007-02-22

Hello,

First time using Dev C++, trying to get the included hello world C program to compile.

1) Running Dev C++ 4.9.9.2 on Windows Vista Business

2) Using the hello world example in the project creation wizard:

include <windows.h>

include <stdio.h>

include <stdlib.h>

int main(int argc, char *argv[])
{
printf("Hello World!\n");

printf("Press ENTER to continue...\n");
getchar();
return 0;
}

3) Compile log:

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
gcc.exe -c test.c -o test.o -I"C:/Dev-Cpp/include"

In file included from C:/Dev-Cpp/include/windows.h:47,
from test.c:1:
C:/Dev-Cpp/include/stdarg.h:6:24: no include path in which to search for stdarg.h
In file included from C:/Dev-Cpp/include/string.h:24,
from C:/Dev-Cpp/include/winnt.h:37,
from C:/Dev-Cpp/include/windef.h:246,
from C:/Dev-Cpp/include/windows.h:48,
from test.c:1:
C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h
In file included from C:/Dev-Cpp/include/winnt.h:37,
from C:/Dev-Cpp/include/windef.h:246,
from C:/Dev-Cpp/include/windows.h:48,
from test.c:1:
C:/Dev-Cpp/include/string.h:36: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:37: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:38: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:39: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:40: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:46: error: syntax error before "strcspn"
C:/Dev-Cpp/include/string.h:49: error: syntax error before "strlen"

C:/Dev-Cpp/include/string.h:50: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:51: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:52: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:55: error: syntax error before "strspn"
C:/Dev-Cpp/include/string.h:58: error: syntax error before "strxfrm"
C:/Dev-Cpp/include/string.h:65: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:66: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:72: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:73: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:77: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:80: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:81: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:90: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:91: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h💯 error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:102: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h: In function strncasecmp': C:/Dev-Cpp/include/string.h:103: error:__sz1' undeclared (first use in this function)
C:/Dev-Cpp/include/string.h:103: error: (Each undeclared identifier is reported only once

C:/Dev-Cpp/include/string.h:103: error: for each function it appears in.)
C:/Dev-Cpp/include/string.h:103: error: __sz2' undeclared (first use in this function) C:/Dev-Cpp/include/string.h:103: error:__sizeMaxCompare' undeclared (first use in this function)
C:/Dev-Cpp/include/string.h: At top level:
C:/Dev-Cpp/include/string.h:104: error: syntax error before "size_t"
C:/Dev-Cpp/include/string.h:109: error: syntax error before "size_t"

C:/Dev-Cpp/include/string.h:120: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:120: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:121: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:121: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:122: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:123: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:124: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:124: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:125: error: syntax error before "wcscspn"
C:/Dev-Cpp/include/string.h:127: error: syntax error before "wcslen"
C:/Dev-Cpp/include/string.h:128: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:129: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:130: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:130: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:131: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:131: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:132: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:132: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:133: error: syntax error before "wcsspn"
C:/Dev-Cpp/include/string.h:134: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:135: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:135: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:136: error: syntax error before "wcsxfrm"
C:/Dev-Cpp/include/string.h:146: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:147: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:148: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:149: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:149: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:150: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:151: error: syntax error before '
' token

C:/Dev-Cpp/include/string.h:151: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:152: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:152: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:153: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:153: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:154: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:154: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:157: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:158: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:167: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:169: error: syntax error before '*' token
C:/Dev-Cpp/include/string.h: In function wcscmpi': C:/Dev-Cpp/include/string.h:170: error:__ws1' undeclared (first use in this function)
C:/Dev-Cpp/include/string.h:170: error: `__ws2' undeclared (first use in this function)
C:/Dev-Cpp/include/string.h: At top level:

C:/Dev-Cpp/include/string.h:171: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:171: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:172: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:173: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:174: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:174: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:175: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:176: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:176: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:177: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:177: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:178: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:178: error: syntax error before '' token
C:/Dev-Cpp/include/string.h:179: error: syntax error before '
' token
C:/Dev-Cpp/include/string.h:179: error: syntax error before '*' token

In file included from C:/Dev-Cpp/include/windows.h:50,
from test.c:1:
C:/Dev-Cpp/include/winbase.h:1308: error: syntax error before "va_list"

C:/Dev-Cpp/include/winbase.h:1309: error: syntax error before "va_list"

In file included from C:/Dev-Cpp/include/windows.h:55,
from test.c:1:
C:/Dev-Cpp/include/winuser.h:3896: error: syntax error before "va_list"

C:/Dev-Cpp/include/winuser.h:3897: error: syntax error before "va_list"

In file included from C:/Dev-Cpp/include/stdlib.h:22,
from C:/Dev-Cpp/include/objbase.h:13,
from C:/Dev-Cpp/include/ole2.h:9,
from C:/Dev-Cpp/include/windows.h:111,
from test.c:1:
C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h

In file included from C:/Dev-Cpp/include/objbase.h:13,
from C:/Dev-Cpp/include/ole2.h:9,
from C:/Dev-Cpp/include/windows.h:111,
from test.c:1:
C:/Dev-Cpp/include/stdlib.h:335: error: syntax error before "wcstombs"
C:/Dev-Cpp/include/stdlib.h:338: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:339: error: syntax error before "mbstowcs"
C:/Dev-Cpp/include/stdlib.h:340: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:347: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:360: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:361: error: syntax error before ')' token
C:/Dev-Cpp/include/stdlib.h:362: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:363: error: syntax error before ')' token
C:/Dev-Cpp/include/stdlib.h:409: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:431: error: syntax error before "size_t"

In file included from C:/Dev-Cpp/include/stdio.h:26,
from test.c:2:
C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h
In file included from C:/Dev-Cpp/include/stdio.h:28,

             from test.c:2:

C:/Dev-Cpp/include/stdarg.h:6:24: no include path in which to search for stdarg.h
In file included from test.c:2:
C:/Dev-Cpp/include/stdio.h:198: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdio.h:209: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdio.h:210: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:211: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:212: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:213: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdio.h:216: error: syntax error before "size_t"

C:/Dev-Cpp/include/stdio.h:216: warning: conflicting types for built-in function 'snprintf'
C:/Dev-Cpp/include/stdio.h:218: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdio.h: In function vsnprintf': C:/Dev-Cpp/include/stdio.h:219: error:s' undeclared (first use in this function)
C:/Dev-Cpp/include/stdio.h:219: error: `n' undeclared (first use in this function)

C:/Dev-Cpp/include/stdio.h:219: error: format' undeclared (first use in this function) C:/Dev-Cpp/include/stdio.h:219: error:arg' undeclared (first use in this function)
C:/Dev-Cpp/include/stdio.h: At top level:
C:/Dev-Cpp/include/stdio.h:220: error: syntax error before "gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:222: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:224: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:297: warning: `__cdecl
' attribute only applies to function types

C:/Dev-Cpp/include/stdio.h:297: error: syntax error before "fread"
C:/Dev-Cpp/include/stdio.h:298: warning: `cdecl' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:298: error: syntax error before "fwrite"
In file included from C:/Dev-Cpp/include/sys/types.h:21,
from C:/Dev-Cpp/include/stdio.h:399,
from test.c:2:
C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h
In file included from test.c:2:
C:/Dev-Cpp/include/stdio.h:431: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdio.h:432: error: syntax error before "__gnuc_va_list"

C:/Dev-Cpp/include/stdio.h:433: error: syntax error before "gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:434: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:435: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdio.h:439: warning: __cdecl__' attribute only applies to function types C:/Dev-Cpp/include/stdio.h:439: error: syntax error before &quot;fgetwc&quot; C:/Dev-Cpp/include/stdio.h:440: warning:__cdecl
' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:440: error: syntax error before "fputwc"
C:/Dev-Cpp/include/stdio.h:441: warning: __cdecl__' attribute only applies to function types C:/Dev-Cpp/include/stdio.h:441: error: syntax error before &quot;ungetwc&quot; C:/Dev-Cpp/include/stdio.h:446: warning:cdecl' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:446: error: syntax error before "getwc"
C:/Dev-Cpp/include/stdio.h:447: warning: __cdecl__' attribute only applies to function types C:/Dev-Cpp/include/stdio.h:447: error: syntax error before &quot;getwchar&quot; C:/Dev-Cpp/include/stdio.h:449: warning:cdecl' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:449: error: syntax error before "putwc"
C:/Dev-Cpp/include/stdio.h:451: warning: __cdecl__' attribute only applies to function types C:/Dev-Cpp/include/stdio.h:451: error: syntax error before &quot;putwchar&quot; C:/Dev-Cpp/include/stdio.h:465: error: syntax error before &quot;size_t&quot; C:/Dev-Cpp/include/stdio.h:467: error: syntax error before &quot;size_t&quot; C:/Dev-Cpp/include/stdio.h: In functionvsnwprintf':
C:/Dev-Cpp/include/stdio.h:468: error: s' undeclared (first use in this function) C:/Dev-Cpp/include/stdio.h:468: error:n' undeclared (first use in this function)
C:/Dev-Cpp/include/stdio.h:468: error: `format' undeclared (first use in this function)

C:/Dev-Cpp/include/stdio.h:468: error: arg' undeclared (first use in this function) C:/Dev-Cpp/include/stdio.h: At top level: C:/Dev-Cpp/include/stdio.h:469: error: syntax error before &quot;__gnuc_va_list&quot; C:/Dev-Cpp/include/stdio.h:471: error: syntax error before &quot;__gnuc_va_list&quot; C:/Dev-Cpp/include/stdio.h:473: error: syntax error before &quot;__gnuc_va_list&quot; C:/Dev-Cpp/include/stdio.h:489: warning:cdecl' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:489: error: syntax error before "_fgetwchar"

C:/Dev-Cpp/include/stdio.h:490: warning: __cdecl__' attribute only applies to function types C:/Dev-Cpp/include/stdio.h:490: error: syntax error before &quot;_fputwchar&quot; C:/Dev-Cpp/include/stdio.h:495: warning:cdecl' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:495: error: syntax error before "fgetwchar"
C:/Dev-Cpp/include/stdio.h:496: warning: `cdecl' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:496: error: syntax error before "fputwchar"

make.exe: *** [test.o] Error 1

Execution terminated

Seems to me something is way off with the include files - is there some other settings that I'm supposed to change?

Thanks for your help!