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

Compilation Error: looking for <err.h> #48

Open
arnoldvillasanta opened this issue Oct 8, 2017 · 4 comments
Open

Compilation Error: looking for <err.h> #48

arnoldvillasanta opened this issue Oct 8, 2017 · 4 comments

Comments

@arnoldvillasanta
Copy link

/Arduino/libraries/heatshrink-master/heatshrink.c:32:17:
fatal error: err.h: No such file or directory
#include <err.h>

Where can I download err.h?

@silentbicycle
Copy link
Collaborator

What OS are you compiling on?

@arnoldvillasanta
Copy link
Author

MacOS

@Doom4535
Copy link

Was a solution to this ever found?

@silentbicycle
Copy link
Collaborator

You should already have err.h as /usr/include/err.h, but the build failure may have more to do with building in an Arduino context -- the Arduino platform is based on C++, not C, which impacts the build setup in many ways.

Are you building with the included makefile? heatshrink.c is the main source for the command line tool, which really doesn't make sense to build for an Arduino, but has built without issue on macOS. I haven't tried since Yosemite, though.

If that's not enough to get you unstuck, I need more details about how you're trying to build.

silentbicycle added a commit that referenced this issue Jul 4, 2021
A couple people have opened issues because they can't get this file
to build for Arduinos, etc., but it isn't supposed to be. Add a comment
comment explaining why right next to those header includes to clarify.

Closes #48, #61.
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

3 participants