When setting the configs in code space the inc file in PBP needs commented (

Go to your PBP directory and find the xxx.inc file for the chip you are using.
In that file you will see config lines similar to what you are putting in your code.
Put a ";" at the begining of those lines.

Or you can modify those lines and not set the configs in code space.