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 STL error: Problem #4680

Closed
ChenMiaoi opened this issue May 18, 2024 · 8 comments
Closed

compile STL error: Problem #4680

ChenMiaoi opened this issue May 18, 2024 · 8 comments

Comments

@ChenMiaoi
Copy link

ChenMiaoi commented May 18, 2024

Describe the bug

I tried to compile the STL on windows11, but there was an error with incorrect SDK version information.But I do know that my environment should be complete and configured according to the compilation dependency requirements on the README.

image

Expected behavior

I don't know if there is a problem with my SDK PATH, but I can confirm that my SDK version is displayed correctly on cmd.

STL version

  • Option 1: Visual Studio version
    Microsoft Visual Studio Community 2022
    Version 17.9.7
    
  • Option 2: git tag version
    https://github.com/microsoft/STL/commit/900eeacb
    tag: vs-2022-17.9
    

SDK version

image

image

@AlexGuteniev
Copy link
Contributor

After installing newer SDK I had to restart Windows to make CMake pick it up, maybe environment does not propagate somewhere

@ChenMiaoi
Copy link
Author

maybe, but I restart some times, not work well, it's the same result, btw, my cmake version is 3.29.3

@cpplearner
Copy link
Contributor

can you run set INCLUDE and set WindowsSdkDir and paste the output here?

@ChenMiaoi
Copy link
Author

can you run set INCLUDE and set WindowsSdkDir and paste the output here?

image
this is SDK
image
this is include

@cpplearner
Copy link
Contributor

Hmm, the SDK dir seems fine. The content of INCLUDE is truncated so I can't see whether it contains the SDK dir.
(It should contain D:\Windows Kits\10\include\10.0.22621.0\ucrt;D:\Windows Kits\10\\include\10.0.22621.0\\um;D:\Windows Kits\10\\include\10.0.22621.0\\shared, among others.)

@ChenMiaoi
Copy link
Author

Hmm, the SDK dir seems fine. The content of INCLUDE is truncated so I can't see whether it contains the SDK dir. (It should contain D:\Windows Kits\10\include\10.0.22621.0\ucrt;D:\Windows Kits\10\\include\10.0.22621.0\\um;D:\Windows Kits\10\\include\10.0.22621.0\\shared, among others.)

INCLUDE=D:\Study\VS\VS\VC\Tools\MSVC\14.39.33519\include;D:\Study\VS\VS\VC\Tools\MSVC\14.39.33519\ATLMFC\include;D:\Study\VS\VS\VC\Auxiliary\VS\include;D:\Windows Kits\10\include\10.0.22621.0\ucrt;D:\Windows Kits\10\\include\10.0.22621.0\\um;D:\Windows Kits\10\\include\10.0.22621.0\\shared;D:\Windows Kits\10\\include\10.0.22621.0\\winrt;D:\Windows Kits\10\\include\10.0.22621.0\\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um

I think the version is the same, 10.0.22621.0, should there be no impact on the sdk?

@AlexGuteniev
Copy link
Contributor

Might be something cached. Try deleting generated files, /out dir and others if any

@ChenMiaoi
Copy link
Author

Might be something cached. Try deleting generated files, /out dir and others if any

Ok, I tried, and done, thanks

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