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

Compile Failed For std::chrono Header Missing #6425

Closed
lyd405121 opened this issue Feb 23, 2025 · 4 comments
Closed

Compile Failed For std::chrono Header Missing #6425

lyd405121 opened this issue Feb 23, 2025 · 4 comments
Assignees
Labels
goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang

Comments

@lyd405121
Copy link

lyd405121 commented Feb 23, 2025

Background

  • I found slang is becoming one of the standard in khronos group in stead of nvidia
  • I guess it is the time to learn some new shader language!
  • I clone and build slang with latest vs2022 version 17.13.0 and windows sdk 10.0.22621.0
  • Get an error for “std::chrono::high_resolution_clock” not found
  • I check the c++17 compile options is set
    Image

Fix

  • I just simply add "#include " at the begining of "slang-compiler.h"
  • Compile done!
  • I don't know why it happened, should it be added?
    Image
@csyonghe
Copy link
Collaborator

This is likely a change in latest vs2022, as I am currently on 17.9 and it compiles fine.

@sergeiepopov
Copy link

I'm having the same issue. It started occurring after the latest VS update.

@bmillsNV
Copy link
Collaborator

@csyonghe has a fix pending.

@bmillsNV bmillsNV added the goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang label Feb 27, 2025
@bmillsNV bmillsNV added this to the Q1 2025 (Winter) milestone Feb 27, 2025
@csyonghe
Copy link
Collaborator

Fixed in #6474.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang
Projects
None yet
Development

No branches or pull requests

4 participants