DJGPP This is a free compiler that has its own graphics library (Allegro). It is rather large, over 10 MBs for most downloads, and it can be difficult to set up because it requires downloading of numerous files. However, it is a great pick that is well worth the extra time downloading/installing. I recommend you download Rhide as the IDE.
Do you have DJGPP-specific source code? This page will be expanding to include games and programs that will only run under DJGPP. Especially good examples for using Allegro!