Some of the characters in the "Build messages" window are incorrect.
C:\Users\Ken\Desktop\Untitled1.c||In function ‘main’:|
C:\Users\Ken\Desktop\Untitled1.c|5|error: ‘print’ undeclared (first use in this function)|
C:\Users\Ken\Desktop\Untitled1.c|5|error: (Each undeclared identifier is reported only once|
C:\Users\Ken\Desktop\Untitled1.c|5|error: for each function it appears in.)|
C:\Users\Ken\Desktop\Untitled1.c|5|error: ‘endl’ undeclared (first use in this function)|
C:\Users\Ken\Desktop\Untitled1.c|6|error: expected ‘;’ before ‘printf’|
||=== Build finished: 5 errors, 0 warnings ===|
I've checked the locale settings:
Cygwin: C.UTF-8 (LANG, LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES) C = en_US (locale -u)
Windows 7: Similar (except LANG is blank)
Editor settings:
Courier New - Regular - 10
Encoding - WINDOWS-1252 (As fallback encoding)
I've tried changing settings on both the Font and the Encoding - UTF-8 As default encoding (bypassing C::B's auto-detection)
gcc version 4, gdb, make, vim, nano packages installed
gcc-4, g++-4 selected in Compiler and Debugger Toolchains
I do not see this with MinGW included Code::Blocks version, but for a variety of reasons I do not want to use the MinGW version.
I also have Code::Blocks 10.5 installed on OS X Snow Leopard/Lion and Fedora 14 and do not see this problem.