Results 1 to 2 of 2

Thread: Getting errors from Gcc as a text file

  1. #1
    Join Date
    Nov 2013
    Location
    Chandigarh, India
    Posts
    62
    Thanks
    8
    Thanked 11 Times in 7 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Getting errors from Gcc as a text file

    Is it possible to get errors from gcc in the form of text and then store it in some file? I am sending some code from a textedit in gui to the gcc compiler. If there are some compile time errors in the code, can I get them through some means in a file??

  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: Getting errors from Gcc as a text file

    Yes you can, but you almost certainly do not need to because you can get any output directly through QProcess.
    http://www.qtcentre.org/threads/5761...Mingw-Compiler

    If, as in the thread above, you are using QProcess to start a batch file that runs the compiler you could also use the file redirection capabilities of the batch file to capture the output. This has nothing to do with Qt.

Similar Threads

  1. Errors in making SIS file
    By bilalsaeed in forum Qt Programming
    Replies: 1
    Last Post: 26th October 2011, 13:08
  2. ASSERTION errors in 4.7.0 file qlayoutengine_p.h
    By jon@tsdmedia.com in forum Qt Programming
    Replies: 1
    Last Post: 8th December 2010, 19:22
  3. Missing file errors when Rebuilding example projects
    By Thomas Wrobel in forum Newbie
    Replies: 1
    Last Post: 8th January 2010, 13:13
  4. Replies: 1
    Last Post: 3rd September 2008, 15:16

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.