Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Cannot open include file: 'stddef.h': No such file or directory
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Cannot open include file: 'stddef.h': No such file or directory

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 2 Posters 26.7k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    krb686
    wrote on 22 May 2014, 13:38 last edited by
    #1

    Just downloaded the latest Qt Creator several days ago (3.1.1) and already I can't compile or build anything off of the shelf. My OS is Windows 7 x64

    The error being received is:

    D:\Qt\5.3\msvc2010_opengl\include\QtCore\qglobal.h:46: error: C1083: Cannot open include file: 'stddef.h': No such file or directory

    I've also added this directory to my CLASSPATH and path variables, to no avail. I can also clearly see the file "stddef.h" inside of this directory.

    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include

    This error persists when I set the compiler to Visual C++ 12.0, as well as MingW 4.8

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 May 2014, 13:49 last edited by
      #2

      Hi and welcome to devnet,

      You can't mix Qt versions and compilers like that especially on Windows.

      You must install the Qt version corresponding to the visual studio you have.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        krb686
        wrote on 22 May 2014, 13:53 last edited by
        #3

        Okay I'm a little confused then. 2 questions.

        1. Which visual studio version corresponds to Qt 5.3 and Qt Creator 3.1.1?
          I have Visual Studio 2013 Express installed. I figured getting the latest of everything would work.

        2. Why does the visual studio version even matter at all? When I try using the MingW compiler, this error still occurs.

        I did read this: "Qt 5.3 also adds binary packages for Visual Studio 2013." over at
        http://blog.qt.digia.com/blog/2014/05/20/qt-5-3-released/

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 May 2014, 14:03 last edited by
          #4
          1. The Qt 5.3 for VS2013 package

          2. Because their compiler are not compatible from version to another and even less with MinGW

          You read right but their's currently packages provided for the last 3 versions of Visual Studio plus MinGW

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • K Offline
            K Offline
            krb686
            wrote on 22 May 2014, 17:22 last edited by
            #5

            Ah I see now, there is a whole list of available Qt packages. I guess I shouldn't have gone with the Qt online installer.

            So then, this package should work?

            Qt 5.3.0 for Windows 64-bit (VS 2013, OpenGL, 636 MB)

            1 Reply Last reply
            0
            • K Offline
              K Offline
              krb686
              wrote on 22 May 2014, 18:12 last edited by
              #6

              Great now it builds and runs fine! Thanks!

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 22 May 2014, 19:43 last edited by
                #7

                Nothing wrong with the online installer, you must just choose your options wisely ;)

                Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                2/7

                22 May 2014, 13:49

                topic:navigator.unread, 5
                • Login

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