This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compile errors
Parms,
Can you post what you have now?
corey
On Mon, 28 Mar 2005 12:48:03 -0800 (PST), Parms singh
<list_track@yahoo.com> wrote:
> 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@gmail.com> 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@yahoo.com> 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@gmail.com> 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
>