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

Timelib breaks regular time functions on windows #151

Open
FrankyBoy opened this issue Jun 27, 2020 · 1 comment
Open

Timelib breaks regular time functions on windows #151

FrankyBoy opened this issue Jun 27, 2020 · 1 comment

Comments

@FrankyBoy
Copy link

I guess this thread has the explanation: https://community.platformio.org/t/build-error-if-time-library-is-installed/450

I suppose you are a Windows user? Windows system is not a case-sensitive so when your source file contains the line #include <time.h> PlatformIO decides to use library 44 because it has the similar file Time.h. As a workaround, you can just rename file Time.h to _Time.h in library directory c:\Users\your_user.platformio\lib\Time_ID44 and your project should compile without errors.

Time.h is deprecated anyhow (only contains a compile time error message and nothing more), so please just get rid of it finally.

@jamesmyatt
Copy link

This can be closed: b0cfc3c

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