Hi, 

I'm trying to compile lyx cvs and I get tons of "ambiguous overload" for
functions regarding the interaction between QString and std::string in
QGraphics.C.

This is with gcc 3.2, qt 3.1.0, autoconf 2.53 and automake 1.5 any ideas
of what's wrong?

Otto

source='QGraphics.C' object='QGraphics.lo' libtool=yes \
depfile='.deps/QGraphics.Plo' tmpdepfile='.deps/QGraphics.TPlo' \
depmode=gcc3 /bin/sh ../../../config/depcomp \
/bin/sh ../../../libtool --mode=compile /usr/local/gcc3.2/bin/g++
-DHAVE_CONFIG_H -I. -I. -I../../../src -I../../../src/
-I../../../src/frontends/ -I../../../images -I./qt2
-I/usr/local/qt/include -I../../../boost
-I../../../src/frontends/controllers  -isystem /usr/X11R6/include
-DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION -g -O
-fno-exceptions -W -Wall -Winline -c -o QGraphics.lo `test -f
QGraphics.C || echo './'`QGraphics.C
/usr/local/gcc3.2/bin/g++ -DHAVE_CONFIG_H -I. -I. -I../../../src
-I../../../src/ -I../../../src/frontends/ -I../../../images -I./qt2
-I/usr/local/qt/include -I../../../boost
-I../../../src/frontends/controllers -isystem /usr/X11R6/include
-DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION -g -O
-fno-exceptions -W -Wall -Winline -c QGraphics.C -MT QGraphics.lo -MD
-MP -MF .deps/QGraphics.TPlo
In file included from /usr/local/qt/include/qwindowdefs.h:44,
                 from /usr/local/qt/include/qwidget.h:42,
                 from /usr/local/qt/include/qcombobox.h:42,
                 from lengthcombo.h:19,
                 from QGraphics.C:27:
/usr/local/qt/include/qstring.h:854: warning: `QString& 
   QString::operator+=(const std::string&)' was used before it was
declared 
   inline
/usr/local/qt/include/qstring.h:574: warning: previous non-inline
declaration 
   here
QGraphics.C: In member function `virtual void QGraphics::apply()':
QGraphics.C:302: ambiguous overload for `std::string& = QString'
operator
/usr/local/gcc3.2/include/c++/3.2/bits/basic_string.h:338: candidates
are: 
   std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
   _Traits, _Alloc>::operator=(const std::basic_string<_CharT, _Traits, 
   _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>,
_Alloc = 
   std::allocator<char>]
/usr/local/gcc3.2/include/c++/3.2/bits/basic_string.h:341:                 
   std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
   _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char,
_Traits = 
   std::char_traits<char>, _Alloc = std::allocator<char>]
/usr/local/gcc3.2/include/c++/3.2/bits/basic_string.h:344:                 
   std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT,
   _Traits, _Alloc>::operator=(_CharT) [with _CharT = char, _Traits = 
   std::char_traits<char>, _Alloc = std::allocator<char>] <near match>
QGraphics.C:308: call of overloaded `basic_string(QString)' is ambiguous
/usr/local/gcc3.2/include/c++/3.2/bits/basic_string.tcc:226: candidates
are: 
   std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const
_CharT*, 
   const _Alloc& = _Alloc()) [with _CharT = char, _Traits = 
   std::char_traits<char>, _Alloc = std::allocator<char>]
/usr/local/gcc3.2/include/c++/3.2/bits/basic_string.tcc:192:                 
   std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const 
   std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char,
_Traits = 
   std::char_traits<char>, _Alloc = std::allocator<char>]
QGraphics.C:309: call of overloaded `basic_string(QString)' is ambiguous
/usr/local/gcc3.2/include/c++/3.2/bits/basic_string.tcc:226: candidates
are: 
   std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const
_CharT*, 
   const _Alloc& = _Alloc()) [with _CharT = char, _Traits = 
   std::char_traits<char>, _Alloc = std::allocator<char>]
/usr/local/gcc3.2/include/c++/3.2/bits/basic_string.tcc:192:                 
   std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const 
   std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char,
_Traits = 
   std::char_traits<char>, _Alloc = std::allocator<char>]
QGraphics.C:310: call of overloaded `basic_string(QString)' is ambiguous
/usr/local/gcc3.2/include/c++/3.2/bits/basic_string.tcc:226: candidates
are: 
   std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const
_CharT*, 
   const _Alloc& = _Alloc()) [with _CharT = char, _Traits = 
   std::char_traits<char>, _Alloc = std::allocator<char>]
/usr/local/gcc3.2/include/c++/3.2/bits/basic_string.tcc:192:                 
   std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const 
   std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char,
_Traits = 
   std::char_traits<char>, _Alloc = std::allocator<char>]
QGraphics.C:311: call of overloaded `basic_string(QString)' is ambiguous
/usr/local/gcc3.2/include/c++/3.2/bits/basic_string.tcc:226: candidates
are: 
   std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const
_CharT*, 
   const _Alloc& = _Alloc()) [with _CharT = char, _Traits = 
   std::char_traits<char>, _Alloc = std::allocator<char>]
/usr/local/gcc3.2/include/c++/3.2/bits/basic_string.tcc:192:                 
   std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const 
   std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char,
_Traits = 
   std::char_traits<char>, _Alloc = std::allocator<char>]


and so on ...

Reply via email to