You really should consider posting your question on a forum for the C compiler you're using. This forum is for the Microengineering Labs BASIC compiler.

If you decide to try PBP, here's a thread that you might find helpful;
http://www.picbasic.co.uk/forum/showthread.php?t=7095