Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Redirect Linker Error



On Thu, 19 Sep 2002 17:07:40 +0800, "Adonnis A. Enriquez"
<adonnis@example.com> squashed this out of the keyboard:

>     Sorry for this nonsense question.
>     Any idea how to redirect gcc linker error to a file
>     rather to a console?

$ man bash

$ gcc [parameters] > your_file 2>&1

This will redirect stdout and stderr to your_file.

If you only want to intercept stdout and keep stderr on the console then
leave out the "2>&1".

-- 
G. Stewart   --   gstewart@example.com
                  gstewart@example.com
Registered Linux user #284683

GnuPG key  : BA3D01C6 (pgp.mit.edu)
Fingerprint: C3DF C686 6572 6E59 E3E4  0F40 2B9A 2218 BA3D 01C6
---------------------------------------------------------------
"POLICE STATION TOILET STOLEN...Cops have nothing to go on."


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links