Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid preproccessing token #29

Open
zavodnyrichard opened this issue Jan 28, 2021 · 0 comments
Open

Invalid preproccessing token #29

zavodnyrichard opened this issue Jan 28, 2021 · 0 comments

Comments

@zavodnyrichard
Copy link

Hi, I tried to build the hid_mouse example but got the following error and I don't really know what that means, nor how to fix it.

make[2]: *** [build/PIC18F25K50/production/_ext/1268166442/usb.p1] Error 1
make[2]: *** Waiting for unfinished jobs....
../../../usb/src/usb.c:200:45: error: pasting formed '@BD_ADDR', an invalid preprocessing token
static struct buffer_descriptor bds[NUM_BD] BD_ATTR_TAG; //BD_ATTR_TAG
                                            ^
../../../usb/src/usb_hal.h:312:23: note: expanded from macro 'BD_ATTR_TAG'
        #define BD_ATTR_TAG @##BD_ADDR
                             ^
../../../usb/src/usb.c:298:14: error: pasting formed '@BUFFER_ADDR', an invalid preprocessing token
} ep_buffers XC8_BUFFER_ADDR_TAG; //XC8_BUFFER_ADDR_TAG
             ^
../../../usb/src/usb_hal.h:314:32: note: expanded from macro 'XC8_BUFFER_ADDR_TAG'
                #define XC8_BUFFER_ADDR_TAG @##BUFFER_ADDR
                                             ^
2 errors generated.

I would appreciate any help, thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant