delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/28/23:40:47

From: Jose Manuel Lopez-Cepero <sigma AT ctv DOT es>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compiling bits and pieces
Date: Fri, 28 Mar 1997 22:47:20 +0100
Organization: Unisource Espana NEWS SERVER
Lines: 23
Message-ID: <333C3C68.7475@ctv.es>
References: <Pine DOT GSO DOT 3 DOT 95 DOT 970322115248 DOT 7722A-100000 AT sparkie DOT gnofn DOT org>
Reply-To: sigma AT ctv DOT es
NNTP-Posting-Host: macarena.ctv.es
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello!

> Is there a means for me to compile just a small part of my program without
> having written the rest of the supporting routines?  ie a means to find
> out if the section I've written will compile without 'internal' errors?
> In the process, I'd also like to have the compiler produce a list of
> 'unreferenced' labels, ie global stuff which would be defined in the main
> part of the code.

The most close thing you can do by now (AFAIK) is compiling as is. If
you have no syntax errors, then the code *will* be effectively compiled
and passed to the linkey, which will most likely complain about not
being able to find '_main'. Any unreferenced thing other than that is
what you want ;) TO get them to a file use DJ's 'redir', I think the
command line is 'redir -e file gcc ....'... note I use -e (it's stderr,
I think) because gcc writes errors to stderr rather to stdout, so you
can't use standard DOS piping (ie. gcc ... > myfile)

Bay
-- 
 _*                        
\ |/_|\/||\                                 sigma AT ctv DOT es      
_\|\/|  ||_\  (formerly Sigmatech)      Jerez / Cadiz / Spain

- Raw text -


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