problems building ktorrent with msvc
Carlo
brandon.ml at gmail.com
Thu Apr 24 14:58:00 CEST 2008
Hi,
ktorrents build fine with mingw, so now I'm trying to build it with
msvc too, but I get this error and I don't know how to fix it
[ 2%] Building CXX object libbtcore/CMakeFiles/btcore.dir/peer/peermanager.obj
peermanager.cpp
M:\kde4\include\gmp.h(1565) : warning C4146: operatore 'meno' unario
utilizzato con tipo unsigned. Il risultato resta unsigned.
C:\kde4\src\ktorrent\libbtcore\peer\peermanager.cpp(71) : warning
C4018: '<=': errata corrispondenza tra signed e unsigned
C:\kde4\src\ktorrent\libbtcore\peer\peermanager.cpp(320) : warning
C4018: '<': errata corrispondenza tra signed e unsigned
C:\kde4\src\ktorrent\libbtcore\peer\peermanager.cpp(424) : warning
C4018: '<=': errata corrispondenza tra signed e unsigned
C:\kde4\src\ktorrent\libbtcore\peer\peermanager.cpp(576) : warning
C4018: '<=': errata corrispondenza tra signed e unsigned
C:\Programmi\Microsoft Visual Studio 8\VC\INCLUDE\vector(565) : error
C2036: 'pollfd *': dimensione sconosciuta
C:\Programmi\Microsoft Visual Studio 8\VC\INCLUDE\vector(550):
durante la compilazione della classe modello, funzione membro
'std::vector<_Ty> &std::vector<_Ty>::operator =(const std::vector<_Ty>
&)'
with
[
_Ty=pollfd
]
c:\kde4\src\ktorrent\libbtcore\peer\authenticationmonitor.h(41):
vedere il riferimento all'istanza del modello di classe
'std::vector<_Ty>' in corso di compilazione
with
[
_Ty=pollfd
]
C:\Programmi\Microsoft Visual Studio 8\VC\INCLUDE\vector(569) : error
C2036: 'pollfd *const ': dimensione sconosciuta
C:\Programmi\Microsoft Visual Studio 8\VC\INCLUDE\vector(578) : error
C2036: 'pollfd *': dimensione sconosciuta
since poll exists only in windows vista i've copied an implementation
of poll that uses select from polipo in ktorrent, and the pollfd
struct is defined here
http://websvn.kde.org/branches/ktorrent/windows_port/libbtcore/util/mingw.h?revision=800356&view=markup
Carlo
More information about the Kde-windows
mailing list