capture "gcc -v /dev/null.dev" to a file
by ge||ge from LinuxQuestions.org on (#536MA)
Various forms of "cpp -v" to get the output into a file that I can edit have all failed.
I used [Search forums] from the Home page and got zero returns for cpp -v and for "cpp -v".
Assuming there is no rather simple answer to getting that, here is exactly what I hoped to get out of cpp -v which I can see on the console but cannot capture (except by using "script" which introduces additional problems).
Though I am baffled why various forms of "put the output into a file" fail, what got me off on to the "cpp -v" was the desire to know very specifically which c header files went into my compilation.
I am using Debian Linux 4.9.2-10 and gcc 4.9.2 (with some security updates).
Pointers about why my Search Forums failed for "cpp -v" may be illuminating.
Pointer about which forum for this kind of question is more appropriate in will help.


I used [Search forums] from the Home page and got zero returns for cpp -v and for "cpp -v".
Assuming there is no rather simple answer to getting that, here is exactly what I hoped to get out of cpp -v which I can see on the console but cannot capture (except by using "script" which introduces additional problems).
Though I am baffled why various forms of "put the output into a file" fail, what got me off on to the "cpp -v" was the desire to know very specifically which c header files went into my compilation.
I am using Debian Linux 4.9.2-10 and gcc 4.9.2 (with some security updates).
Pointers about why my Search Forums failed for "cpp -v" may be illuminating.
Pointer about which forum for this kind of question is more appropriate in will help.