[Bug c/29192] New: gcc will delete the c_source_file.c without any alarm!

freephp at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Sep 23 12:08:00 GMT 2006


when I made a mistake that I forgot to add the Object output file name after
the option -o ,gcc deleted my source file without any alarm so quickly that I
lost my source file and I had to type the source file again.

command & ouput:

kolin@Ubuntu:~$ gcc -o snmpget.c -lnetsnmp
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crt1.o: In function
`_start':../sysdeps/i386/elf/start.S:115:对‘mainÂ’未定义的引用
collect2: ld 返回 1

kolin@Ubuntu:~$ ls snmpget.c
ls: snmpget.c: No such file or directory


-- 
           Summary: gcc will delete the c_source_file.c without any alarm!
           Product: gcc
           Version: 4.0.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: freephp at gmail dot com
 GCC build triplet: gcc -o snmpget.c -lnetsnmp
  GCC host triplet: Ubuntu 6.06
GCC target triplet: i486-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29192



More information about the Gcc-bugs mailing list