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. stddef.h not found in QtCreater
Forum Updated to NodeBB v4.3 + New Features

stddef.h not found in QtCreater

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 5.5k 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.
  • M Offline
    M Offline
    msauer75
    wrote on last edited by
    #1

    Hi,
    I create a console project without Qt. QtCreator creates a lot of messages like

    • stddef.h not found
    • stdard.h not found
    • use of undeclared identifiert 'NULL'

    and so on.

    But the project can compile without any errors.
    Can you tell me where the problem is?

    Thank you for your help.
    BR
    martin

    JonBJ jsulmJ 2 Replies Last reply
    0
    • M msauer75

      Hi,
      I create a console project without Qt. QtCreator creates a lot of messages like

      • stddef.h not found
      • stdard.h not found
      • use of undeclared identifiert 'NULL'

      and so on.

      But the project can compile without any errors.
      Can you tell me where the problem is?

      Thank you for your help.
      BR
      martin

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #3

      @msauer75 This is probably caused by the Clang code model. You can disable Clang code model plug-in in "Help/Plugins...".

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M G 2 Replies Last reply
      5
      • M msauer75

        Hi,
        I create a console project without Qt. QtCreator creates a lot of messages like

        • stddef.h not found
        • stdard.h not found
        • use of undeclared identifiert 'NULL'

        and so on.

        But the project can compile without any errors.
        Can you tell me where the problem is?

        Thank you for your help.
        BR
        martin

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #2

        @msauer75 said in stddef.h not found in QtCreater:

        But the project can compile without any errors.

        What do you mean by this, if you are saying it does not compile in Qt Creator. Or maybe you're saying the opposite way round? It may be just me, but I am not understanding which environemnt you say does work and which does not?

        At any rate, whether from inside Qt Creator or outside, you need to make sure your include path is correct. It looks like it is not finding those header files in the system directories where it should, so either it is looking in the wrong place or they are not where they should be.

        1 Reply Last reply
        0
        • M msauer75

          Hi,
          I create a console project without Qt. QtCreator creates a lot of messages like

          • stddef.h not found
          • stdard.h not found
          • use of undeclared identifiert 'NULL'

          and so on.

          But the project can compile without any errors.
          Can you tell me where the problem is?

          Thank you for your help.
          BR
          martin

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #3

          @msauer75 This is probably caused by the Clang code model. You can disable Clang code model plug-in in "Help/Plugins...".

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          M G 2 Replies Last reply
          5
          • jsulmJ jsulm

            @msauer75 This is probably caused by the Clang code model. You can disable Clang code model plug-in in "Help/Plugins...".

            M Offline
            M Offline
            msauer75
            wrote on last edited by
            #4

            @jsulm

            Thank you. Now it works.

            1 Reply Last reply
            0
            • jsulmJ jsulm

              @msauer75 This is probably caused by the Clang code model. You can disable Clang code model plug-in in "Help/Plugins...".

              G Offline
              G Offline
              goodwillie
              wrote on last edited by
              #5

              @jsulm Thank you.
              And for qtcreator 4.11.0, it should be "Help -> About Plugins -> C++ -> ClangCodeModel".

              1 Reply Last reply
              0
              • S szumial referenced this topic on

              • Login

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