Re: Compile errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Corey,

I left the stl_hash_fun.h as is. I had removed it to
see if it was 'hash' was declared in any other file.

I added the using statement as you mentioned. However,
I continue to get the same error(s).

Parms
--- corey taylor <corey.taylor@xxxxxxxxx> wrote:

> Why would you remove the file that declares
> std::hash?
> 
> You need to leave that in and simply add the using
> statement.
> 
> corey
> 
> 
> On Mon, 28 Mar 2005 09:59:54 -0800 (PST), Parms
> singh
> <list_track@xxxxxxxxx> wrote:
> > Corey,
> > 
> > I did a couple of things:
> > - Added the following as you suggested:
> >   using std::hash; in the .cc file.
> > 
> > - Removed stl_hash_fun.h and tried to compile.
> > 
> > I get the exact same errors as my original posting
> in
> > both the cases.
> > 
> > Parms
> > --- corey taylor <corey.taylor@xxxxxxxxx> wrote:
> > > Parms,
> > >
> > >   You are using the stl_hash_fun.h header file
> so
> > > hash is declared
> > > inside the stl namespace.  You need to fully
> qualify
> > > it with the std::
> > > namespace or add
> > >
> > > using std::hash;
> > >
> > > Beneath the includes.
> > >
> > > corey
> > >



		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux