Find the answer to your Linux question:
Results 1 to 4 of 4
Hi all! Today i was writing some c code for my university data structure course and i made an error in gcc compilation....so i have the .out file which is ...
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    2

    compiling in c - gcc

    Hi all!

    Today i was writing some c code for my university data structure course
    and i made an error in gcc compilation....so i have the .out file which is working
    perfectly but i dont have (it has been erased) the source .c file.Is there any way to
    get the source file from the .out file (inverse process than compiling) or i must write again ALL (oh God!) the code ?

    Thanx in advance

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    There is no magic bullet here, I'm afraid.

    If deleting the source file is something that is dangerously easy (we all work in different environments, so this is nothing to be embarrassed about), you may wish to consider backing up your entire working directory to some other directory at regular intervals.

    That won't help you in your current situation, I know. My condolences. I've been there.
    --
    Bill

    Old age and treachery will overcome youth and skill.

  3. #3
    Just Joined!
    Join Date
    May 2008
    Posts
    2
    Thank you for your kind words...i m writing again the code,next time i ll be more carefull.

  4. #4
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    next time i ll be more careful
    This means you're making a backup copy at regular intervals, right? :)
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

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