cannot open source file, std lib files



  • I'm trying to get Qt up and running on Visual Studio 2017 but I can't seem to build the project.

    Windows 10
    Visual Studio 2017

    Installed Qt via the online installer selecting msvc2017 version. I added "msvc2017_86\bin" to environment variables. However I'm still getting these errors messages.

    This is the output and the error list states lines like

    Error (active)	E1696	cannot open source file "stddef.h"	TestProject   	c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\atomic	15	
    
    1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory
    1>moc_BacklogManager.cpp
    1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory
    1>main.cpp
    1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory
    


  • Turns out this way due to me editing the Visual Studio 2017 install. For some reason I must have unchecked "Standard Library Modules" during in install. What an idiot.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.