delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/30/07:26:36

To: djgpp AT delorie DOT com
Message-Id: <AAa5oToOER@zubr.smb.mv.ru>
Organization: Ulianovsk branch of RSRC Zemlja.
Date: Wed, 30 Oct 1996 12:35:32 +0300 (MSK)
From: "Alexander V. Semyonov" <sav AT zubr DOT smb DOT mv DOT ru>
Subject: Help me
Lines: 32

I am a newcomer to djgpp. Thanks for cool C++ compiler!
But I have some problems with it.
Where is any help for DJGPP STL (Standart Template Library)?

I wrote to strtst.cc:
-------------------
#include<string>
#include<function>

string s1,s2;

int main(void)
{
 return s1!=s2;
}
-------------------
then I try: C:\>gcc -c strtst.cc
and get following errors:

strtst.cc: In function `int main()':
strtst.cc:8: call of overloaded `operator !=' is ambiguous
c:/tools/gc/lang/cxx/function.h:24: candidates are: operator !=(const basic_stri
ng<char,string_char_traits<char> > &, const basic_string<char,string_char_traits
<char> > &)
c:/tools/gc/lang/cxx/std/bastring.h:531:                 operator !=(const basic
_string<char,string_char_traits<char> > &, const basic_string<char,string_char_t
raits<char> > &)

i.e. '#include<function>' disables all other operator templates !

Thanks,
Alexander V. Semyonov, Simbirsk, Russia

- Raw text -


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