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

Library with same file name as arduino core filename yields linking error #3

Open
Sembiance opened this issue Dec 9, 2015 · 3 comments

Comments

@Sembiance
Copy link

I was trying to use the FastLED library, which happens to have a 'wiring.c' file.

Because your Makefile compiles all source files into the same directory, this overwrites the 'wiring.cpp' output from arduino core, thus leading to a linker error.

I've been using https://github.com/arons/ArduinoDevel/ in the mean time as a workaround.

@tomswartz07
Copy link
Owner

I suppose that the library files could be appended with a -lib, so in your case the files would be wiring.ino and wiring-lib.c

Would this be acceptable?

@Sembiance
Copy link
Author

That would fix it my particular issue, but if you had different libraries that had the same source filename, that wouldn't work for them. So it would only be a partial fix for the more general problem.

It's not that big a deal for me, as the other Arduino makefile project I linked seems to work just fine so I'll probably just continue using that. I just thought I would report the bug just in case.

@tomswartz07
Copy link
Owner

I suppose I was misunderstood; I'll clarify.

The makefile will copy over the library files with the appended name, so this will fix the naming issue for any case where the *.ino file name maches the library.

I'll try to get the fix up later today or tomorrow.

Thanks again for reporting it!

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