Thank you guys. Now, it works fine. There is a "condensed" version of the thread that Dave mentioned that was really helpful.

http://www.picbasic.co.uk/forum/cont...o-your-Program

The tricky part (at least for me) to make it work was figuring out that I needed two CONFIG statement lines. One for CONFIG1 and another one for CONFIG2.

Code:
@  __CONFIG _CONFIG1, .......
@  __CONFIG _CONFIG2, .......