Refer to DJGPP website below
http://www.delorie.com/djgpp/
on downloading the free C Compiler and installing it.
Right-click "My Computer", goto Properties->Advanced->Environment Variables, click "New" and enter "DJGPP" at Variable Name, "C:\DJGPP\djgpp.env" for Variable Value. There should also be a PATH with the value "C:\DJGPP\bin"
Compiling Source Code
In Textpad, goto "Configure->Preferences", click on Tools->Add->Program, then select gcc.exe from the folder "C:\DJGPP\bin", use the default folder and enter "-c $FileName" for parameter, make sure the check box "Capture output" is checked so that you can see any message generated by gcc. Then click "Apply". You can apply the same instruction for gpp.exe & gxx.exe (for latest version)
Linking object files to executables
In Textpad, goto "Configure->Preferences", click on Tools->Add->Program, then select gcc.exe from the folder "C:\DJGPP\bin", use the default folder and enter "-o $BaseName.exe $BaseName.o" for parameter, make sure the check box "Capture output" is checked so that you can see any message generated by gcc. Then click "Apply". You can apply the same instruction for gpp.exe & gxx.exe (for latest version). But you can only apply linking after you generated the .o extension file from compiling
Configure Textpad with DJGPP C compiler (Windows XP/2000)
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard