This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to make gcc print messages during compilation.
- To: ssathyan at india dot smartstorage dot com
- Subject: Re: How to make gcc print messages during compilation.
- From: Bolan Meek <Bolan dot Meek at wcom dot com>
- Date: Fri, 30 Jun 2000 11:00:54 -0500
- Cc: egcs at egcs dot cygnus dot com
- Organization: K-Force/Sarcom/MCI-WorldCom
- References: <OFC54936BC.A32B4401-ON8525690E.00760DC7@india.smartstorage.com>
- Reply-to: Bolan dot Meek at wcom dot com, bolan at koyote dot com
ssathyan@india.smartstorage.com wrote:
>
> I am involved in porting applications from Windows NT to Linux.
> I have 3 problems
> (1) How we can make gcc to print user messages during the compilation
> process.
Large projects, and even some small ones, are generally
compiled using make. Makefiles can execute _whatever_ is desired
for user messages, even X clients.
> (2) Is there a way I can stop the compilation with error messages Like
> #error preprocessor directive in VC++ compilers.
AFAIK, make generally aborts processing unless told, with an
option switch, to do otherwise. To force a bail-out from
compiling or pre-processing, one _could_ intentionally
introduce errors.