Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5 application running priblem...
Forum Updated to NodeBB v4.3 + New Features

Qt 5 application running priblem...

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.4k 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.
  • B Offline
    B Offline
    birinci2012
    wrote on last edited by
    #1

    Hi everybody..
    i downloaded and installed qt 5.
    then i opened qt creator 2.6.1
    and create a new simple gui application.
    then i try to run it, it says:
    "C:\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtCore\qglobal.h:46: error: C1083: Cannot open include file: 'stddef.h': No such file or directory"
    so what is the problem and how to solve it.
    Thanks.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hpollak
      wrote on last edited by
      #2

      Check your Settings in QT-Creator.

      Have you installed Visual Studio ( Express ) or the SDK?
      The missing header-file comes with it.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        birinci2012
        wrote on last edited by
        #3

        why Visual Studio,
        i dont understand,
        i created new application and
        did not make any changes on it,
        i try to run the sample, but it doesnt run,
        so what is the problem....

        with qt 4.x i dont get this error,
        but on qt 5 i cant run my application.....

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hpollak
          wrote on last edited by
          #4

          The header File of qglobal.h includes stddef.h this include file is part as well of the SDK and the Visual Studio and not part of QT.

          By using QTCreator it try to find your compiler ( allso part as well of VS and SDK )

          By using a differnt Version of QT the Creator try to find your QT and the matching compiler.

          check Menu: Tools -> Options...

          Build & Run -> Kits

          click on your used kit
          then you see wich compiler is used.

          In my installation I use the Windows SDK 7.1 ( available from MS Homepage ) there is a Include Path in the Directory where the stddef.h is placed.

          maybe you have an error there ( check allso the selected Compiler in Kits compared to the available Compiler in the tab by the kits )

          you can allso try to add

          INCLUDE += c:\path_to_sdk\Include

          but i think the better way is to fix your configuration.

          1 Reply Last reply
          0

          • Login

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