Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

C1083: Cannot open include file: 'stddef.h': No such file or directory



  • It is not enough having Visual Studio 2008 Visual C++ (compiler) installed. You'll need the Windows platform SDK too. But there is an easier way to compile a Qt application under Windows: MinGW

    The standard installation of "Qt SDK" does not contain MinGW automatically! Use the custom installation mode instead!

    If you use the default installation (like me) you can add MinGW very easily:

    Start Qt Creator

    Menu: Help | Start Updater

    Package manager (Maintain Qt SDK)

    In the tree view : Qt SDK / Development Tools / Qt 4.7.4 / Desktop Qt 4.7.4 - MinGW

    I just like to share my experience here since I googled but found no answer. Happy coding!

    --Harald-René Flasch (aka hfrmobile)

    PS: see also http://stackoverflow.com/questions/4303597/cannot-open-include-file-stddef-h-no-such-file-or-directory-found-error-when-c/7614323#7614323



  • [quote author="hfrmobile" date="1317406520"]

    I just like to share my experience here since I googled but found no answer. Happy coding!
    [/quote]

    Thanks for sharing! It would be nice to transfer this tutorial to "Qt Dev Net Wiki":http://developer.qt.nokia.com/wiki too :)



  • [quote author="leon.anavi" date="1317484806"]
    Thanks for sharing! It would be nice to transfer this tutorial to "Qt Dev Net Wiki":http://developer.qt.nokia.com/wiki too :)
    [/quote]

    Good idea! I just added http://developer.qt.nokia.com/wiki/Cannot_open_include_file_stddef_h_No_such_file_or_directory
    Hope I've done it at the right location and categories. Feel free to improve/add/move my very first article at Qt dev wiki ;-)



  • [quote author="hfrmobile" date="1317490062"]
    Good idea! I just added http://developer.qt.nokia.com/wiki/Cannot_open_include_file_stddef_h_No_such_file_or_directory
    Hope I've done it at the right location and categories. Feel free to improve/add/move my very first article at Qt dev wiki ;-)[/quote]

    Great :) I just added it to categories HowTo and Tutorial because they are also appropriate.



  • [quote author="leon.anavi" date="1317490732"]
    Great :) I just added it to categories HowTo and Tutorial because they are also appropriate.
    [/quote]

    I already saw the new categories. Thank you!



  • I did this and still getting the same error message.
    I am trying to create the sample Text Finder Project.



  • I have the same error but for inttypes include file... whereas MinGW is included ... I have Visual C++ 2008 Express Edition ... How can i make it works ?



  • Sorry for the delay ...

    [quote author="wanchai5" date="1319198112"]I did this and still getting the same error message.
    I am trying to create the sample Text Finder Project.[/quote]

    Can't find a project called "Text Finder" in the Qt SDK install directory. When I do a file search "Finder" I only find Mac stuff ... Can you post the path of that project here so that it is possible to try a compilation. Also helpful would be a screen-shot of your build settings:

    e.g.

    !https://byfiles.storage.live.com/y1pXhDaxaqEUcz9AKXy9KfpTinFE8Xq1Le1mY_lo2X1-7kYIaerdj54jCSgHD8GWkb72ZSqoQ-MGng/Sourceforge-Squiggly-Qt-Build-Settings.png?psid=1(Build settings sample)!

    [quote author="lowee" date="1319729727"]I have the same error but for inttypes include file... whereas MinGW is included ... I have Visual C++ 2008 Express Edition ... How can i make it works ?[/quote]

    Should not matter when using MinGW (see screen-shot above). Is "Visual Studio C++ 2008 Express Edition" listed in the Qt version combo box (see also screen-shot above). You should try the MinGW as shown in the screen-shot.

    hth,
    hfrmobile



  • I gave up running QT on that PC and used another PC with a clean install of Win 7 and it's working fine.

    I had Visual Studio 2008 installed on the old PC and it must've conflicted with QT.



  • there is not any start updater in qt creator 2.6.1



  • bq. Cannot open include file: ‘stddef.h’: No such file or directory

    Experienced this with VS 2010. I found out that the VS installer wasn't able to add most of the headers and ended up with only 3 "unusable" headers. I did reinstall the VS2010 (tried express and professional) and ended without solving my problem. Now I don't use VS2010 anymore... my VS2008 and VS2012 works fine with all my Qt versions.

    As I said above: reason for this was that the installer was of no good, might be buggy or my system can't "accept" it. Try to check you VS header directory!



  • That's good thing to know!



  • I'am experiencing the same problem...using Qt 5.0.2 msvc opengl 32bit:

    @
    C:\Qt\Qt5.0.2\5.0.2\msvc2010_opengl\include\QtCore\qglobal.h:46: error: C1083: Cannot open include file: 'stddef.h': No such file or directory

    c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\windows.h:151: error: C1083: Cannot open include file: 'excpt.h': No such file or directory
    @

    I have installed windows 8 sdk right now and restart QtCreator without success!


Log in to reply