Ticket #520 (closed bug: wontfix)
mpicc -o test.c deletes test.c
| Reported by: | "Rajeev Thakur" <thakur@…> | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | mpich2 | Keywords: | |
| Cc: |
Description
The students at Utah discovered that if they mistakenly do "mpicc -o test.c" instead of "mpicc -c test.c" the test.c file gets deleted :-(. On further investigation, they found that "gcc -o test.c" does not delete the file, but "gcc -o test.c -lm" does. Not sure what we can do about it, but it is annoying to lose your source file with a typo of "mpicc -o" instead of "mpicc -c". Rajeev % mpicc -o test.c : test.c gets deleted % gcc -o test.c : No file gets deleted % gcc -o test.c -lm : test.c gets deleted
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
