是否可以在使用“-o”标志编译后恢复被覆盖的文件,但忘记了参数?

Is it possible to recover overwriten file after compilation with `-o` flag, but forgotten argument?

我在下面的 运行 命令中测试了一个库,但忘记将可执行文件名放在 -o 标志之后。

gcc -o bibarreglos.c test2.c

之后,bibarreglos.c 被删除并抛出此错误:

collect2.exe: error: ld returned 1 exit status.

我有目标文件,有机会找回bibarreglos.c吗?

您的 无法恢复。