www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/19/00:58:02

Date: Wed, 18 Mar 1998 21:55:05 -0800 (PST)
Message-Id: <199803190555.VAA19187@adit.ap.net>
Mime-Version: 1.0
To: unjl AT ab272 DOT rz DOT uni-karlsruhe DOT de (Johannes Dieterich), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Help me please

At 02:41  3/18/1998 GMT, Johannes Dieterich wrote:
>Hi there.
>
>Trying to compile bar.cc I encountered the following errors:
>
>[Start]
>cd d:/comp/prolib/blabla
>make -k bar.o
>gxx -Wall -g -o bar.o -c foo.o bar.cc
>In file included from d:/comp/djgpp/lang/cxx/std/bastring.h:571,
>                 from d:/comp/djgpp/lang/cxx/std/string.h:6,
>                 from d:/comp/djgpp/lang/cxx/string:5,
>                 from foo.hh:26,
>                 from bar.hh:40,
>                 from bar.cc:20:
>d:/comp/djgpp/lang/cxx/std/sinst.h:60: ambiguous template instantiation for
`operator !=(const char *, const basic_string<char,string_char_traits<char>
> &)' requested
[etc]
>The errors occurred after including <string> in foo.hh . Well, compiling
>foo.o worked fine though.
>Trying about one hour I was not able to reproduce these errors in a less
>complicated environment. I admit, one hour is not much but stuff like that
>is extremely annoying.

But can you reproduce it in that exact case? Does just compiling `bar.cc'
show the problem? If so, please post it if it's not too huge.

What is `foo.o' doing on the command line, when you're just compiling one
file? What version of GCC are you using? What versions of the `gcc*b',
`gpp*b' and `lgp*b' files did you download?

>What also confuses me is: The buggy file is an STL-file ??

It is possible that there is a bug in an STL header, though there are
certainly other explanations as well.

>I know this is not very much information but if someone has experienced a
>similar problem (and solved it) or has a suspicion about the nature
>of the error I would greatly appreciate it if they could share their
>knowledge with me

If you can give details, even those who have not had a similar problem can
investigate it.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019