www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/16/12:00:08

Xref: news2.mv.net comp.os.msdos.djgpp:7372
From: krecik AT ii DOT uni DOT wroc DOT pl (Grzegorz Nowakowski)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gcc /lfile
Date: 16 Aug 1996 09:16:00 GMT
Organization: Laboratoire de Recherche en Informatique, UPS/CNRS, Orsay,FRANCE
Lines: 39
Message-ID: <KRECIK.96Aug16111600@ii.uni.wroc.pl>
References: <32121E83 DOT 7603 AT nortel DOT ca>
NNTP-Posting-Host: hp20.lri.fr
In-reply-to: Ian Chapman's message of Wed, 14 Aug 1996 14:44:19 -0400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <32121E83 DOT 7603 AT nortel DOT ca> Ian Chapman <ichapman AT nortel DOT ca> writes:

> Hi all,
>      I've moved all the djgpp files over and unzipped them.  I've 
> compiled and got a pile of warnings and a .o file for both c and c++ 
> modules.  Right now the warnings are not a worry as they are mostly 
> due to lack of proto definitions.  I'm a bit naughty in pre ansi c.
> 
>     What I've failed to find is how to get a listing from the 
> compiler.  In MIX power c I just commanded
> 
> pc myfile /lfile /etc   to get a .exe .mix and file.lst.
> 
> The file.lst was great for looking at where the compiler failed to 
> make sense of what I asked.
> 
> What switch should I use to get a listing from the gcc compiler?

I'm almost sure gcc hasn't such switch.  Instead you should catch
standard error stream, which gcc dumps messages to.  If you have whole
distribution of DJGPP, there is program 'redir' which allows you to do
such.  Just type
	redir -e yourfile.lst gcc yourfile.c
If you want to catch both stdout and stderr, type
	redir -oe -e yourfile.lst ....

There is more detailed documentation of the program.  I don't remember
exactly where, sorry.  Just dig with 'info', I bet you'll find it.

I hope this helps.
-- 
						 Grzegorz Nowakowski
						<krecik AT ii DOT uni DOT wroc DOT pl>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GC dpu s:- a- C++(++++) ULSH P+>+++ L+>++++ E+(+++) W N++ o? K? w---() O?
M- V? PS PE Y+ PGP-@ t+ 5? X? R+@ tv--- b+(+++) DI? D+ G e-> h* r-- y
------END GEEK CODE BLOCK------
finger hayden AT vax1 DOT mankato DOT msus DOT edu for info about geek codes

- Raw text -


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