[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 16:57:38
Message-ID: 200611271757.38773.lucardus () onlinehome ! de
[Download RAW message or body]

Am Montag, 27. November 2006 17:16 schrieb Thiago Macieira:
> Ok, put uint32_t( ) around both arguments. This must shut up gcc.

This way?

max_order_ = qMax<uint32_t>( uint32_t ( order_of( size ) ), uint32_t ( max_order_ ) \
);

No way. :(

[ 36%] Building CXX object indexlib/CMakeFiles/index.dir/compressed.o
/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 = uint32_t]
/home/lucardus/qt-copy/src/corelib/global/qglobal.h:817: error:
   const T& qMax(const T&, const T&) [with T = uint32_t]
/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 = uint32_t]
/home/lucardus/qt-copy/src/corelib/global/qglobal.h:817: error:
   const T& qMax(const T&, const T&) [with T = uint32_t]
/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 = uint32_t]
/home/lucardus/qt-copy/src/corelib/global/qglobal.h:817: error:
   const T& qMax(const T&, const T&) [with T = uint32_t]
/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 = uint32_t]
/home/lucardus/qt-copy/src/corelib/global/qglobal.h:817: error:
   const T& qMax(const T&, const T&) [with T = uint32_t]
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