Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qglobal.h(45): fatal error C1083: Cannot open include file: 'type_traits': No such file or directory
Forum Updated to NodeBB v4.3 + New Features

qglobal.h(45): fatal error C1083: Cannot open include file: 'type_traits': No such file or directory

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 3 Posters 5.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    m3g1dd
    wrote on last edited by m3g1dd
    #1

    I have read similar posts regarding this error:

    qglobal.h(45): fatal error C1083: Cannot open include file: 'type_traits': No such file or directory

    I have tried these commands on Microsoft PowerShell:

    > C:\Qt\Qt5.11.3\5.11.3\msvc2017_64\bin\qtenv2.bat
    Setting up environment for Qt usage...
    Remember to call vcvarsall.bat to complete environment setup!
    

    And then:

    > & 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat' x64
    **********************************************************************
    ** Visual Studio 2017 Developer Command Prompt v15.8.5
    ** Copyright (c) 2017 Microsoft Corporation
    **********************************************************************
    [vcvarsall.bat] Environment initialized for: 'x64'
    

    However, I'm still receiving this error:

    > nmake.exe /u /f .\Makefile.Release
    
    Microsoft (R) Program Maintenance Utility Version 14.15.26730.0
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
            echo    ..\..\qt3d-editor\standalone\main.cpp  > C:\Users\me\AppData\Local\Temp\nm4FAD.tmp
            cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MD -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -I..\..\qt3d-editor\standalone -I. -I..\..\qt3d-editor\editorlib -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtQuick -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtWidgets -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtGui -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtANGLE -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtQml -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtNetwork -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtCore -Irelease -I\include -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\mkspecs\win32-msvc -Forelease\ @C:\Users\me\AppData\Local\Temp\nm4FAD.tmp
    main.cpp
    C:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'type_traits': No such file or directory
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\Hostx64\x64\cl.EXE"' : return code '0x2'
    Stop.
    
    1 Reply Last reply
    1
    • M Offline
      M Offline
      m3g1dd
      wrote on last edited by
      #2

      I was running the commands on PowerShell. The problem is resolved by using a command prompt!

      W H 2 Replies Last reply
      8
      • M m3g1dd

        I was running the commands on PowerShell. The problem is resolved by using a command prompt!

        W Offline
        W Offline
        whx123321
        wrote on last edited by
        #3

        @m3g1dd hello can you help me to solve this problem

        1 Reply Last reply
        0
        • M m3g1dd

          I was running the commands on PowerShell. The problem is resolved by using a command prompt!

          H Offline
          H Offline
          haha3
          wrote on last edited by
          #4

          @m3g1dd said in qglobal.h(45): fatal error C1083: Cannot open include file: 'type_traits': No such file or directory:

          ‎我在PowerShell上运行命令。通过使用命令提示符解决了该问题!‎

          How to do it, detailed steps

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved