I was converting an GCC makefile project into a Code::Blocks type project and was always getting errors that implied that thier was a problem with the headers supplied with my GCC (minGW) implementation. Yet, I know it worked when I used just GCC (minGW) with the makefile.
I found out that the problem was that cb was setup by me or by default to include the headers from the GCC (minGW) implementation before including the project include. (Edit: It includes them after the project includes, but it stilled caused an issue on this code compiled.)
Once, I removed the "Directories" from "Compiler", "Linker" and "Resouce Compiler" under "Setting" -> "Compiler and Debugger" the compile error goes away. I hope this helps some one else out. I spent 4 days trying to see the error in my setup or the header files in mingw gcc, then saw the simple setup mistake.
Note: I think I found a bug in that each time I start up cb I must delete the "Directories" from "Compiler", "Linker" and "Resouce Compiler" under "Setting" -> "Compiler and Debugger". But, I will hold off reporting it till I re-boot my WinXP box in case it's a window error. And download a nightly build to verify its not my compile issue.
Edit: I would consider this a WAD issue, works as designed and not a bug, I was thinking that before that is why I titled this a user error. But, I am thinking it might be a common begginner error.
Tim S