compile the first example the send me the generated .HEX file (in a .ZIP)

Everything work as expected here.

Which PIC programmer and software do you use?

EDIT: Which PBP version ?