Quote Originally Posted by prstein View Post
When I add the single line "PORTB.0 = 0" it gives me two warnings and an error
Something is fishy here. I can add the line without errors. I am using MPASM 5.35, and PBP 2.60A.

So, did you have to do the "replace OSC with XTAL in PBPPIC18.LIB" thing to get it to work?
Yes, I did have to for the 18F26j50. Not the best solution. As it might break any include file that tried to look at the osc speed. But I still like it better than editing the .inc file by hand each time I try something different. I'll be keeping my eyes peeled to see if MeLabs can make a proper fix. Microchip has thrown the curveball, making changes that affect their 3rd party development tools.

If yours or Dave's header program could do it and relieve some of the configuritis pain I feel each time I go to a new chip, (or one I forgot), that sure would be great.

Thanks you guys for giving it a go.