PICC will not disable WDT on PIC16F876
The config commands have changed a bit over various releases of PICC.
Try your config like this:

__CONFIG (FOSC_XT &amp; WDTE_OFF &amp; PWRTE_ON &amp; BOREN_OFF,
   LVP_OFF &amp; CPD_OFF &amp; WRT_OFF &amp; DEBUG_OFF);


Also, there is no need for these 3 includes:

#include"pic16f876.h"
#include "pic.h"
#include "htc.h"


Just one like this:

#include &lt;htc.h&gt;


will include the other 2 (look in htc.h and pic.h in  to see how it works. They should be in something like: C:\Program Files\HI-TECH Software\PICC\9.83\include)
Note angle brackets, not quotes in the above include - this uses the default toolsuite include path where all these files are stored.