delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/25/20:51:31

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gcc and capital letters
Date: Fri, 25 Oct 1996 19:06:09 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 42
Message-ID: <32717211.306E@cs.com>
References: <54r7ed$4u2 AT news-central DOT tiac DOT net>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp211.cs.com
Mime-Version: 1.0
To: Allen lyons <felawldl AT tiac DOT com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Allen lyons wrote:
> 
> Does anyone know why this happens
> when I type this at the dos prompt?
> ----------------------------------------------------------
> C:\djgpp\output>gcc -o xani.exe XANI.CPP
> C:\djgpp\output>gcc -o xani.exe xani.cpp
> C:\djgpp\output>gcc -o xani.exe XANI.c

DJGPP uses the same POSIX file naming conventions as GNU:

.c	C program

.C	C++ program
.cc	C++ program
.cpp	C++ program

.s	assembly program
.S	assembly program that must be preprocessed

.o	object file

.h	header file

.y	bison program

Non-DJGPP, but still relevant:

.z	gzip archive
.Z	compress archive (totally different format)

As you can see, case is significant in several ways here.  Even though
DOS is case-insensitive, DJGPP is not, and you simply have to get used
to it.  :)  This also applies to parameters passed to programs; i.e.,
gcc -o ... is MUCH different from gcc -O ...

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |        fighteer AT cs DOT com         |
| Plan:  To find ANYONE willing to |   http://www.cs.com/fighteer   |
| play Descent 2 on DWANGO!        | Tagline: <this space for rent> |
---------------------------------------------------------------------

- Raw text -


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