Mail Archives: djgpp/1996/10/30/07:26:36
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 -