Find the answer to your Linux question:
Results 1 to 3 of 3
How do i copy the contents of the errors and other details which i get while compilation into a file? for example: gcc abc.c will generate some errors how will ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    5

    Unhappy How to copy the contents which we get on compilation into a file?


    How do i copy the contents of the errors and other details which i get while compilation into a file?
    for example: gcc abc.c
    will generate some errors how will i copy the contents? I have tried piping but every time i get an empty file

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Do

    # make 2>make.log 1>&2

    This shud redirect all stderr and stdout to make.log file.
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #3
    Just Joined!
    Join Date
    May 2007
    Posts
    5

    Smile

    Thanks man

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •