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

Fix "chrono" C++ library not being included on Windows #4779

Closed
wants to merge 1 commit into from

Conversation

0xENDER
Copy link

@0xENDER 0xENDER commented Feb 21, 2025

On Linux, the build is successful because this library is usually included in the headers by default. But on Windows, when using Visual Studio (at least VS 2022 Community - the version I tested this on), the build fails because the "chrono" library is not included by default.

To avoid troubling new Windows adopters of this C++ runtime, it would be good to include this in the code!

(Adding this line does not break builds on Linux, and does not cause any warnings on Windows or Linux! - I tested it on both Windows and Linux)

On Linux, the build is successful because this library is usually included in the headers by default. But on Windows, when using Visual Studio (at least VS 2022 Community - the version I tested this on), the build fails because the "chrono" library is not included by default.

To avoid troubling new Windows adopters of this C++ runtime, it would be good to include this in the code!

(Adding this line does not break builds on Linux, and does not cause any warnings on Windows or Linux! - I test it this on both Windows and Linux)

Signed-off-by: 0xENDER <[email protected]>
@deanmsands3
Copy link

I was about to do this exact same PR. Thanks @0xENDER.

@Hammie
Copy link

Hammie commented Feb 24, 2025

Duplicate of #4738
Also ran into the same issue

@0xENDER
Copy link
Author

0xENDER commented Mar 2, 2025

This change has been made through a different pull request

@0xENDER 0xENDER closed this Mar 2, 2025
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.

3 participants