NO

Author Topic: CC Deleting Source Files  (Read 2527 times)

DYSEQTA

  • Guest
CC Deleting Source Files
« on: February 01, 2016, 05:19:56 AM »
CC is deleting source files on an error involving output file names.

Code: [Select]
cc -c /std:C11 /Tamd64-coff /Ze /FoMain.o Main.c

No problem. Produces Main.o as expected.

Code: [Select]
cc -c /std:C11 /Tamd64-coff /Ze /Fo Main.o Main.c

Shows CC command help and then deletes Main.c

CC.exe Version 8.0.0.0 64bit
OS: Windows 10 Pro 64bit

Command line screenshot demonstrating issue in action attached.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: CC Deleting Source Files
« Reply #1 on: February 01, 2016, 09:09:30 AM »
This behavior are in cc's from version 7
This command delete source file too.
>cc -Fo Main.c
May the source be with you