Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcupt1!bla From: bla@hpcupt1.cup.hp.com (Brad Ahlf) Newsgroups: comp.sys.hp Subject: Re: CC, emacs, and the three bears Message-ID: <67870036@hpcupt1.cup.hp.com> Date: 12 Jun 91 18:54:08 GMT References: <2308@godzilla.tcs.com> Organization: Hewlett Packard, Cupertino Lines: 37 > I am using /usr/bin/CC on an HP9000S300. I believe that > is the HP-UX C++ translator. Correct. Probably the older version A.02.00. "what /usr/bin/CC" > However, emacs can only recognize errors when they are in a > certain format. Consider the following partial output from > a make: > CC: "../getmaps.c", line 116: warning 117: id not used > Emacs recognized the first three warnings (from cpp), but not the > fourth (from C++). I want it to recognize all the errors and warnings. Due to a complaint from another customer (not sure if it was for emacs or some other error message parsing program) we changed the error message format for HP C++ in the newer 2.1 version so that it is easier to find the error number and also easy to parse. We now place the error/warning number at the end of the line in parenthesis and leave the line number as is. See the following example message. We plan to maintain this format in the future (unless of course you have some other very compelling reason for us to do otherwise). CC: "errmsg.C", line 3: warning: id not used (117) If Emacs does not handle this either, it should not be too hard to hack it to accept this new format (or the old format). Emacs is great that way, you can configure it to do just about anything. Sorry, I do not use emacs in this way and do not have these hacks. Brad Ahlf bla@hplgsup1.cup.hp.com #include P.S. You might want to update to the latest HP C++ products. 2.1 translator has been shipping on S300/400 for 7.0 for several months. 2.1 native compiler will be shipping for S300/400 on 8.0 very soon. S800 already has 2.1 native compiler for 7.0 and soon 8.0 and S700 8.05 compiler too.