Article 536MA capture "gcc -v /dev/null.dev" to a file

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.latest?d=yIl2AUoC8zA latest?i=KFoe5svHYB0:4--l29_qfDY:F7zBnMy latest?i=KFoe5svHYB0:4--l29_qfDY:V_sGLiP latest?d=qj6IDK7rITs latest?i=KFoe5svHYB0:4--l29_qfDY:gIN9vFwKFoe5svHYB0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments