0

Let me just say that I am now backing up everything.

I accidentally typed this line, g++ -o source.cc source.cc

And I now have a binary instead of my source. Does anyone know of a good dissembler for C++ in the command line... I have all the function prototypes and structure definitions if that is of any help.

Cœur
  • 37,241
  • 25
  • 195
  • 267
  • We've all been there and learned that lesson! Time to start keeping your source under [source control](http://stackoverflow.com/q/315911/78845) and perhaps start using [make](http://stackoverflow.com/q/73799/78845) to take care of those pesky `g++` command-lines. Good luck! – johnsyweb Feb 17 '13 at 04:52
  • Thanks, source control Looks very helpful! – Harley Armstrong Feb 17 '13 at 04:55
  • I figured this was different since it was my own code and I had structure definitions/previous versions – Harley Armstrong Feb 17 '13 at 04:56
  • 1
    If you still have it in your editor use the undo commands to revert to previous buffers. Though I'm guessing you don't have the buffers opened...? – Syndacate Feb 17 '13 at 05:00
  • Nope... I just use vim with no buffers. – Harley Armstrong Feb 17 '13 at 05:23

0 Answers0