Mail Archives: djgpp/1997/03/28/23:40:47
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 -