I had the same problem, I couldn't compile in the command line but not in Code::Blocks IDE, even after creating files bcc32.cfg and ilink32.cfg, so I tried the following:
Settings>> Compiler and debuggers... >> linker settings
and under "link libraries" box I clicked "Add" button and I went to directory "C:\Borland\BCC55\Lib" and added all the files that were visible ( Library files (*.a, *.so, *.lib, *.dyl) and now I can compile from CB IDE using Borland compiler.