I have just had a quick look at another free IDE called Pelles C (http://www.smorgasbordet.com/pellesc/index.htm), It had a couple of interesting errors that came up whilst trying to compile an existing project. Two things;
1. It told me "Missing prototype for 'printf". Being a complete newbie, I had obviously not included the correct header file. Easy to fix.
2. It managed to tell me that some variables that I had defined were not being referenced. Again easy to fix.
How did C::B (and DevCpp) compile my program with these errors present?
different compilers behave different, that's what we have to live with -
- sometimes it's difficult to differentiate between erros and warnings...
How did my program work ok with these errors present (using just plain ol' C)? Is there an option that I can set for me to check for these type of errors?
what you describe can also let be warned by gcc, when you use the compiler switch "-Wall"
or in codeblocks set "Enable all compiler warnings" in Project->Build options->Compiler Flags
about PellesC
(it uses LCC as its compiler)
As an aside, it had a nice resource editorĀ . You can add icons, cursors, menu/table entries, version numbers, manifest info, dialogue info.
PellesC is really a very nice piece of SW and very very well thought out and usable.
But limited to C - well for most things but not for all.
And it doesn't use LCC as its compiler, Pelles C-compiler is based on LCC, but it's completely overworked now and targets only Win32.
I have done a lot of small projects with PellesC and i use it regularly when i need some quick tools - mostly console applications.
The IDE with included resource editor and debugger is really delicate - for small projects.