

%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"įor the x86 Native Tools Command Prompt, it is: For the 圆4 Native Tools Command Prompt, it is: When you open up the command prompt, it automatically runs a batch file. The command line compiler, cl.exe, isn't responsible for setting the include paths. Is there a permission missing for standard users that I need to set? Does it matter that standard users have a '.' in their usernames? I am the IT admin for this school so I can set new group policy if necessary.


Running 圆4 Native tools as Administrator compiles fine.Adding /I"C:\Program Files (x86)\Windows Kits\10\Include\*VERSION*\ucrt" to cl.exe does not solve the problem.Windows.h exists in Program Files(x86)\Windows Kits\10\Include\*VERSION*\um.corecrt.h exists in Program Files (x86)\Windows Kits\10\Include\*VERSION*\ucrt.%PATH% is almost identical between students and the Administrator.NXCOMPAT /DYNAMICBASE /SUBSYSTEM:WINDOWS /MACHINE:X64 /NOLOGOĪdministrators can compile fine, just our standard domain users (teachers and students) cannot. Their compile command is along the lines of:Ĭl.exe *SOURCE FILES* /EHsc /DLL /LD /W3 /GF /Gd /MD /std:c++17 /MP /link /OUT:"test.dll" When they try to compile they get these errors:įatal Error C1083: Cannot open include file 'Windows.h' : No such file or directoryĬ:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\8\include\Ĭrtdefs.h(10): fatal error C1083: Cannot open include file 'corecrt.h': No such file or directory I've installed Visual Studio Community at a school and I want my students to build using the command line.
