how to send c/c++ compiler errors to a text file compiling from Qt Creator
Unsolved
General and Desktop
-
What should I insert to pro file to send compiler errors to txt file?
https://stackoverflow.com/questions/47806506/how-to-send-c-compiler-errors-to-a-text-file-in-cmd"g++ main.cpp 1>normal.txt 2>error.txt"
-
@JacobNovitsky You don't.
$ cd /tmp/build-untitled-Desktop_Qt_6_6_0_GCC_64bit-Debug $ qmake ../untitled/untitled.pro $ make 2>&1 | tee compile.log ... normal compile output $ cat compile.log ... same output captured
or, if you do not also want the output on the console:
make > compile.log 2>&1
BTW: I do not understand why you think you need this. You can copy and paste from the Compiler Output pane in Qt Creator if you really need the output in a file.