[solved] Qt Creator. How to use C++ error parser for custom build step?



  • Hi, everybody!

    I compile my C++ project via Custom Build Step which calls a special Windows-batch script. This script uses PuTTy's plink to login to a remote server and execute make there.

    I can see make's output in "Compile Output" pane but compiler error messages are not shown in the "Issues" pane.

    Is it possible to have GCC error parser parse my script's output to the "Issues" pane?



  • g cc -o <file> Place the output into <file>
    also gcc can output to stdout instead stderr, but options I do not remember



  • [quote author="rst256" date="1409105150"]g cc -o <file> Place the output into <file>
    also gcc can output to stdout instead stderr, but options I do not remember[/quote]

    gcc's -o option allows to specify the name of the output (i.e. produced) file. This does not allow to redirect the output!

    To redirect the output in a file you should use gcc ... > file



  • Thank you, guys! You didn't answer my question but helped me to find the solution.

    My script returned compiler output in stdout. As I experimentally discovered Qt Creator parses compiler's stderr. So I changed my script so that now it writes compiler's output to stderr.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.