delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/30/23:10:12

From: "Daniel Marques" <djm7195 AT no DOT spam DOT is4 DOT nyu DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: a weird (stupid) thing with djgpp - question
Date: Mon, 30 Nov 1998 22:37:37 -0500
Organization: New York University
Lines: 24
Message-ID: <73vocb$mb6$1@news.nyu.edu>
NNTP-Posting-Host: dial5-async19.dial.net.nyu.edu
X-Trace: news.nyu.edu 912483531 22886 (None) 128.122.237.39
X-Complaints-To: usenet AT news DOT nyu DOT edu
X-Newsreader: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

If I am about to compile a file and want to type
gxx -c File.cpp

and accidentally type
gxx -o File.cpp

not only does djgpp respond with a message telling me something along the
line of undefined reference to main
BUT IT ERASES THE FILE!!!!!

Now, I understand that this is happening because it is trying to compile a
non-existent file into a file named File.cpp but this seem like a mistake
which could happen quite a lot and be very very costly (e.g. there goes my
homework).

Is this a DJGPP bug/feature or does it represent something weird with DOS
(Win95 Dos mode), and is there anyway to get around it (besides typing more
carefully)?

Dan
If you would like to e-mail me use djm7195 AT is4 DOT nyu DOT edu, the other one is for
the spammers.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019