The hex files seem to be the same. After compliling, I get one like post #13 if I look at the format my MeLabs programmer displays, but the hex file it uses looks just like post #15. So we must all be compiling the same thing. At least that's something! I have not been able to find my pic16f84a. I have not used those for a long time. The 16f84a has so few settings to begin with, that there isn't a lot to get wrong in the config fuses.

I saw that you have your osc set to 4 mhz. Can you confirm that your resonator is really 4 mhz? If it was 8 to 10 mhz, you should be setting it for HS and not XT.

By the way, do you have any other resonators, or crystals you could try?