Results 1 to 2 of 2

Thread: Get source from .o file

  1. #1
    Join Date
    May 2016
    Posts
    4
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Get source from .o file

    Hi. I accidentally deleted my project and I'm trying to get it back. I was able to undelete almost all of it, except for one .h and .cpp pair. I managed to recover the .o file corresponding to my last compilation of that pair and I'd like to know if it's possible to get the sources from that file somehow


    I do have a back up, but it's 400 km away on a turned off computer, so I won't have access to it until March

    Thank you for your help. Merry Christmas

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,972
    Thanks
    277
    Thanked 808 Times in 797 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Get source from .o file

    Sounds like you're in Antarctica for the summer...

    You need to look for something called a "decompiler" for whatever compiler you are using (g++ maybe?). Boomerang might do the job or at least get you started. Here's another link.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 0
    Last Post: 15th July 2015, 07:56
  2. Migrating content from header file to source file
    By ehnuh in forum Qt Programming
    Replies: 2
    Last Post: 3rd October 2012, 17:00
  3. how to compile c++ source file in qtCreator
    By orky7 in forum General Programming
    Replies: 6
    Last Post: 20th March 2009, 06:45
  4. compile source code file
    By eva in forum Qt Programming
    Replies: 6
    Last Post: 16th March 2009, 11:15
  5. Can't debug source file
    By oetzi in forum Newbie
    Replies: 5
    Last Post: 27th December 2007, 07:46

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.