This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/29192] New: gcc will delete the c_source_file.c without any alarm!
- From: "freephp at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2006 12:08:26 -0000
- Subject: [Bug c/29192] New: gcc will delete the c_source_file.c without any alarm!
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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