Try using Borland's command-line compiler (in the second table on that linked page named "Compiler"). It is free and works very well, but you may not be too keen on it because the free version includes no IDE. Iow, you have to compile by typing a command line. It's actually the only compiler I use except when the situation requires otherwise.
Good luck to you.