From: Jose Manuel Lopez-Cepero 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: Reply-To: sigma AT ctv DOT es NNTP-Posting-Host: macarena.ctv.es Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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