Closed mrinvader closed 8 months ago
Good day and thank you for this feedback.
I'm not sure why this include is optional on all my environment, but you are correct. I just added the missing include.
Feel free to submit a pull request if you find additional faults.
Thanks for this contribution!
it ended up erroring out after I ran it. Ill file a new report.
Thanks!
Sorry, I assumed that would be it since you provided the solution.
Looking forward to hear back!
Hi All...
I received
during the final make
(https://techoverflow.net/2019/06/20/how-to-fix-c-error-errno-undeclared/) gave me the answer...
when you try to compile it you see an error message like
fix-c-error-errno-undeclared.txt📋 Copy to clipboard⇓ Download main.c: In function ‘main’: main.c:4:5: error: ‘errno’ undeclared (first use in this function) errno = EFAULT; ^~~~~ main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in main.c:4:13: error: ‘EFAULT’ undeclared (first use in this function) errno = EFAULT; Solution: Add
fix-c-error-errno-undeclared.c📋 Copy to clipboard⇓ Download
include
at the top of the source file where the error occured. This will include both the errno variable and specific error codes like EFAULT.
solution
vi ./src/app/settings/app_settings.c add
include
to top of file in the includes section
rerun make and it built successfully!