With Watcom under QNX4 a *.err file is created if the compiler detects some
error/warning.
I’m trying to find a simple solution, within a makefile and haven’t been
able to find anything that doesn’t look like a kludge.
Any hint?
With Watcom under QNX4 a *.err file is created if the compiler detects some
error/warning.
I’m trying to find a simple solution, within a makefile and haven’t been
able to find anything that doesn’t look like a kludge.
Any hint?
Mario Charest wrote:
With Watcom under QNX4 a *.err file is created if the compiler detects some
error/warning.I’m trying to find a simple solution, within a makefile and haven’t been
able to find anything that doesn’t look like a kludge.Any hint?
Something like this in your Makefile?
…c.o:
qcc $CFLAGS $< -o $@ 2> $<.err
if [ ! -s $<.err ] ; then
rm -f $<.err ;
else
echo Compile errors in $<: ;
cat $<.err ;
fi
Assuming I’ve got the $< and $@ right, that’ll build the file and
redirect error output to filename.err… if the .err file is empty,
it’ll be deleted.
–
Chris Herborth (cherborth@qnx.com) - Senior Zombiologist and Tech Writer
Never send a monster to do the work of an evil scientist.
Monthly QNX newsletter - http://www.qnx.com/news/forms/newsletter.html