Skip to content

Fix issue linking pgmspace.h functions in a sketch. #403

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

Closed
wants to merge 1 commit into from
Closed

Fix issue linking pgmspace.h functions in a sketch. #403

wants to merge 1 commit into from

Conversation

tdicola
Copy link
Contributor

@tdicola tdicola commented Jun 8, 2015

This pull fixes issue #401, that pgmspace.h functions like strcpy_P, strlen_P, etc. fail to link with an error they can't be found. The fix is to extend the extern "C" in pgmspace.h so it covers all the function declarations. To test it use the example sketch in #401 and you can see if fail before the fix and succeed after the fix (and work as expected when run on the hardware).

@tdicola
Copy link
Contributor Author

tdicola commented Jun 10, 2015

Turns out this was fixed with #343. The current board manager json points to an older build before this fix, so if anyone hits the same issue for now the best option is to build the latest version or manually apply the fix from #343.

@tdicola tdicola closed this Jun 10, 2015
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

Successfully merging this pull request may close these issues.

1 participant