CodeBlocks is an IDE that can be used with most any compiler. But it is not a compiler, itself. its just a shell. so you need to use CodeBlocks in conjunction with a compiler, and preferrably one that, unlike Turbo C, is tightly bound to the ANSI standard.
I think your problem is that you may be using CodeBlocks without having a compiler associated with it, and it's attempting to default to a GCC compiler.
Since you dont have a GCC compiler (i assume you're on Windows), your code is not being recognized.
here's the quickest way to get started:
Since (I assume) you're on a Windows machine, get the MS VisualC++ Express Edition free compiler (download here) and use it as the preferred compiler in CodeBlocks. you can select which compiler is being used from the toolbar "SETTINGS -> Compiler and Debugger" menu
then quit using any function that requires libraries -- like the dreaded "conio.h", "dos.h", or even "windows.h" -- and constrain yourself to writing code using only standard ANSI C. short-term difficulty, yes, but long-term rewards.
even then, you'll probably still have some problems porting code you've written against the MSVC compiler to a real ANSI compiler like GCC, but it the problems will be a few minor details rather than a ton of major code rewrites.
now the only problem with this setup I've described is that I dont think the free (express) version of MSVC has …