[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [Kde-pim] error compiling kdepim4
From:       Stephan Johach <lucardus () onlinehome ! de>
Date:       2006-11-27 15:57:49
Message-ID: 200611271704.55626.lucardus () onlinehome ! de
[Download RAW message or body]

Am Sonntag, 26. November 2006 22:05 schrieb Thiago Macieira:
> Stephan Johach wrote:
> >/home/lucardus/kdepim/indexlib/mempool.tcc:50: error: call of overloaded
> >`qMax(
> >   unsigned int, memory_reference<uint32_t>&)' is ambiguous
> >/home/lucardus/kdepim/indexlib/compat.h:56: error: candidates are: T
> >qMax(const
> >   T&, const T&) [with T = uint32_t]
>
> Heh, this is funny.
>
> gcc thinks it's ambiguous between one choice only. By definition
> of "ambiguousness", there has to be at least two options :-)
>
> Does it help if you change the line mempool.tcc:50 from:
> 	max_order_ = qMax<uint32_t>( order_of( size ), max_order_ );
> to
> 	max_order_ = qMax( order_of( size ), uint32_t( max_order_ ) );
> ?

No, that does not help. Looks very similar.

/home/lucardus/kdepim/indexlib/mempool.tcc: In member function `typename
   Traits::pointer mempool<Traits>::allocate(unsigned int) [with Traits =
   compressed_page_traits]':
/home/lucardus/kdepim/indexlib/compressed.cpp:119:   instantiated from here
/home/lucardus/kdepim/indexlib/mempool.tcc:50: error: call of overloaded 
`qMax(
   unsigned int, uint32_t)' is ambiguous
/home/lucardus/kdepim/indexlib/compat.h:56: error: candidates are: T 
qMax(const
   T&, const T&) [with T = unsigned int]
/home/lucardus/qt-copy/src/corelib/global/qglobal.h:817: error:
   const T& qMax(const T&, const T&) [with T = unsigned int]
/home/lucardus/kdepim/indexlib/mempool.tcc:51: error: call of overloaded 
`qMax(
   unsigned int, mempool<compressed_page_traits>::<anonymous enum>)' is
   ambiguous
/home/lucardus/kdepim/indexlib/compat.h:56: error: candidates are: T 
qMax(const
   T&, const T&) [with T = unsigned int]
/home/lucardus/qt-copy/src/corelib/global/qglobal.h:817: error:
   const T& qMax(const T&, const T&) [with T = unsigned int]
/home/lucardus/kdepim/indexlib/mempool.tcc: In member function `typename
   Traits::pointer mempool<Traits>::reallocate(typename Traits::pointer,
   unsigned int) [with Traits = compressed_page_traits]':
/home/lucardus/kdepim/indexlib/compressed.cpp:165:   instantiated from here
/home/lucardus/kdepim/indexlib/mempool.tcc:226: error: call of overloaded 
`qMax
   (memory_reference<uint32_t>&, unsigned int)' is ambiguous
/home/lucardus/kdepim/indexlib/compat.h:56: error: candidates are: T 
qMax(const
   T&, const T&) [with T = unsigned int]
/home/lucardus/qt-copy/src/corelib/global/qglobal.h:817: error:
   const T& qMax(const T&, const T&) [with T = unsigned int]
/home/lucardus/kdepim/indexlib/mempool.tcc: In member function `void
   mempool<Traits>::fill_into_list(unsigned int, unsigned int) [with Traits =
   compressed_page_traits]':
/home/lucardus/kdepim/indexlib/mempool.tcc:72:   instantiated from `typename 
Traits::pointer mempool<Traits>::allocate(unsigned int) [with Traits = 
compressed_page_traits]'
/home/lucardus/kdepim/indexlib/compressed.cpp:119:   instantiated from here
/home/lucardus/kdepim/indexlib/mempool.tcc:83: error: call of overloaded 
`qMax(
   mempool<compressed_page_traits>::<anonymous enum>, unsigned int)' is
   ambiguous
/home/lucardus/kdepim/indexlib/compat.h:56: error: candidates are: T 
qMax(const
   T&, const T&) [with T = unsigned int]
/home/lucardus/qt-copy/src/corelib/global/qglobal.h:817: error:
   const T& qMax(const T&, const T&) [with T = unsigned int]
make[2]: *** [indexlib/CMakeFiles/index.dir/compressed.o] Error 1
make[1]: *** [indexlib/CMakeFiles/index.dir/all] Error 2
make: *** [all] Error 2
lucardus@leviathan:~/kdepim/build$         
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic