I highly suspect that you either have an old version of the compiler/bricxcc or that you do not have the enhanced NBC/NXC firmware (latest version) installed on your NXT.
Please send screenshots of your About box and Compiler preferences (NBC/NXC tab) to the email address in the BricxCC about box. Make sure you have the enhanced NBC/NXC 1.31 firmware on your NXT and version 3.3.8.9 or later of BricxCC (which should include 1.2.1 r4 of the NBC/NXC compiler).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
nxtbee_Setup screen capture
I highly suspect that you either have an old version of the compiler/bricxcc or that you do not have the enhanced NBC/NXC firmware (latest version) installed on your NXT.
Please send screenshots of your About box and Compiler preferences (NBC/NXC tab) to the email address in the BricxCC about box. Make sure you have the enhanced NBC/NXC 1.31 firmware on your NXT and version 3.3.8.9 or later of BricxCC (which should include 1.2.1 r4 of the NBC/NXC compiler).