Linux randomly deleted my file while compiling what do I do?

前端 未结 2 1882
我在风中等你
我在风中等你 2021-01-23 01:25
gcc -L/root/Desktop - Wall -o prog3.c -pthread -lcopy
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.0: In function \'_start\': (.text+0x20): undefined          


        
2条回答
  •  走了就别回头了
    2021-01-23 01:38

    Your problem is here: -o prog3.c. gcc’s -o option is used to tell gcc which name it should give to the executable it generates. So here, you’re basically asking your compiler to replace your prog3.c source file by an executable. Sadly your code is gone...

提交回复
热议问题