Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: bubble <j.j.b.weinberg@hccnet.nl>
Subject: Re: Cxx Compile error
Date: 2000/04/27	[thread overview]
Message-ID: <39085945.D9F0C505@hccnet.nl> (raw)
In-Reply-To: 39084E61.BFC93BF7@fender.iris.com

Aaron Sawyer wrote:
> 
> bubble wrote:
> > bubble wrote:
> > > I was trying to compile blackbox using cxx from compaq.
> > > All was going well until the compiler hit Icon.cc where it gave the
> > > following error:
> > >
> > > cxx: Error: Icon.cc, line 137: identifier "strcmp" is undefined
> > >         if (strcmp(name, "Unnamed")) {
> > > ____________^
> > >
> > > could comeone xplain why the identifier is undefined,
> > > and strcmp is a function or am I really mistaken.
> [snip]
> > So am i to conclude that something needs to be defined for strcmp
> > as well?
> > If so what would that be?
> 
> Odd.  The quick (though not necessarily correct) fix is to put the line
> 
> #include <string.h>
> 
> at the beginning of Icon.cc ; this will define strcmp() and other
> string manipulation functions.
> 
> I would then be asking myself why it was missing (or what other
> bits are missing from the compile/link/load/runtime environment)
> and hunt... (is there a makefile?  was there a README? ... )
> 
> HTH,
> =Aaron
> --
> .============================v============================.
> | D. Aaron Sawyer            : Aaron.Sawyer@IrisSP.AMcom  |
> | Iris Associates            : Voice:   +1.978.392.5298   |
> | Five Technology Park Drive : Fax:     +1.978.392.6669   |
> | Westford, MA  01886        : Email:  s/SP.AM/./ above   |
> `============================^============================'

Hi,

Thanks for your reply Aaron and Alex.

These are very saine question i need to learn to ask myself when
confronted with problems like these.
Could you specify how I would hunt. Should I use ladebug to debug try
lclint to look for errors in the source.
See the thing is that blackbox does compile using g++, just not when
using cxx.
I was sifting through documents included in the cxx release but couldn't
find the precise awnser.
I tried several extra compile options to now avail.
But yeah I could have looked for string.h :).
It is indeed an important question why wasn't it included ?
Could it be that g++ isn't that strict, compared to cxx?

Anyway thanks for your help



  reply	other threads:[~2000-04-27  4:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-27  4:00 Cxx Compile error bubble
2000-04-27  4:00 ` bubble
2000-04-27  4:00 ` bubble
2000-04-27  4:00   ` Aaron Sawyer
2000-04-27  4:00     ` bubble [this message]
2000-04-27  4:00       ` Tony Hammitt
2000-04-27  4:00   ` Alex Rhomberg
2000-04-27  4:00 ` Martin Sinot
2000-04-27  4:00   ` bubble
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox