STL icon indicating copy to clipboard operation
STL copied to clipboard

compile STL error: Problem

Open ChenMiaoi opened this issue 1 year ago • 7 comments

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

ChenMiaoi avatar May 18 '24 13:05 ChenMiaoi

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

AlexGuteniev avatar May 18 '24 14:05 AlexGuteniev

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

ChenMiaoi avatar May 18 '24 14:05 ChenMiaoi

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

cpplearner avatar May 20 '24 13:05 cpplearner

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

image this is SDK image this is include

ChenMiaoi avatar May 20 '24 15:05 ChenMiaoi

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.)

cpplearner avatar May 20 '24 15:05 cpplearner

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?

ChenMiaoi avatar May 20 '24 15:05 ChenMiaoi

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

AlexGuteniev avatar May 20 '24 16:05 AlexGuteniev

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

Ok, I tried, and done, thanks

ChenMiaoi avatar May 21 '24 02:05 ChenMiaoi