💻 Software
How can I recover source overwritten by a bad compile command?
Fresh7 days ago
Mar 15, 20269936 viewsConfidence Score0%
0%
Problem
I had written a source code of C++ and complied it with the same name using the following command line. For example: Now my source code has been replaced by the executable program.Is there any way to retrieve my source-code. I'm new to Linux so I'm not sure if there is any way to undo what I've don…
Error Output
c++ source-code.cpp -o source-code.cpp
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I recover source overwritten by a bad compile command?
Low Risk
Probably not, try source control? You might be lucky enough to have an editor open or a terminal window with scrollback. And in the locking-the-barn-door-after-the-horse-has-bolted department, a good development practice even when working on toy pro…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix