Results 1 to 4 of 4

Thread: standard c++ header not found at compile time in QtCreator

  1. #1
    Join Date
    Mar 2013
    Posts
    4
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default standard c++ header not found at compile time in QtCreator

    I have a simple Qt Gui application on Windows XP system that uses some standard C++ headers such as <fstream> and <string>. The program was compiling and working perfectly, but all of a sudden I started to get <fstream> no such file or directory at compile time. I would appreciate if someone can tell what could have caused it.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: standard c++ header not found at compile time in QtCreator

    You changed something and something else broke: probably compiler related default include paths. That's the level of assessment possible on the supplied information... even if this was a Qt question.

  3. #3
    Join Date
    Mar 2013
    Posts
    4
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: standard c++ header not found at compile time in QtCreator

    Thanks for the response. It is working now after I changed my file extensions. I found that Qt Creator was no longer recognizing *.c as C++ files, which it was doing yesterday. I must have changed something that caused it. Do you know how to make *.c files be recognized as C++ files in the compiler? Thanks.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: standard c++ header not found at compile time in QtCreator

    Quote Originally Posted by snaqvi View Post
    Do you know how to make *.c files be recognized as C++ files in the compiler?
    Why would you want to do that?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 8
    Last Post: 8th August 2011, 20:47
  2. Replies: 4
    Last Post: 14th December 2010, 23:04
  3. compile to arm+include header
    By nataly in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2009, 12:59
  4. Compile problem: Qt4.5.1 opensource, VisualStudio 2008 Standard
    By wally in forum Installation and Deployment
    Replies: 2
    Last Post: 28th May 2009, 15:42
  5. Too simple compile error to be found by me??!!!
    By MarkoSan in forum General Programming
    Replies: 6
    Last Post: 20th December 2007, 04:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.