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

including mpsse.h in projects can cause "duplicate symbol" linker errors #30

Open
ep00ch opened this issue Oct 11, 2017 · 1 comment
Open

Comments

@ep00ch
Copy link

ep00ch commented Oct 11, 2017

including mpsse.h in multiple source files can cause "duplicate symbol" linker errors due to fast_rw_buf being defined in the header file.

I removed
unsigned char fast_rw_buf[SPI_RW_SIZE + CMD_SIZE];
from mpsse.h
and added
static unsigned char fast_rw_buf[SPI_RW_SIZE + CMD_SIZE];
to fast.c

Maybe Im not sure how this is supposed to be used, but it only seems useful in fast.c's functions which are "For internal use only"

@BhargavaRamM
Copy link

Possible duplicate of #11. You can check out PR #12 which is not yet merged.

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

2 participants