Ir para conteúdo
  • 0

Erro ao compilar no msvc tfs 0.4


Adriez

Pergunta

depois do quest.cpp aparece esse erro

 

\boost\boost/bind/bind.hpp(447): warning C4244: 'argument' : conversion from 'uint16_t' to 'uint8_t', possible loss of data (..\protocolgame.cpp)
1> C:\boost\boost/bind/bind_template.hpp(20) : see reference to function template instantiation 'R boost::_bi::list4<A1,A2,A3,A4>::operator ()<bool,F,boost::_bi::list0>(boost::_bi::type<T>,F &,A &,long)' being compiled
1> with
1> [
1> R=bool,
1> A1=boost::_bi::value<Game *>,
1> A2=boost::_bi::value<uint32_t>,
1> A3=boost::_bi::value<uint16_t>,
1> A4=boost::_bi::value<uint16_t>,
1> F=boost::_mfi::mf3<bool,Game,uint32_t,uint16_t,uint8_t>,
1> T=bool,
1> A=boost::_bi::list0
1> ]
1> C:\boost\boost/bind/bind_template.hpp(20) : see reference to function template instantiation 'R boost::_bi::list4<A1,A2,A3,A4>::operator ()<bool,F,boost::_bi::list0>(boost::_bi::type<T>,F &,A &,long)' being compiled
1> with
1> [
1> R=bool,
1> A1=boost::_bi::value<Game *>,
1> A2=boost::_bi::value<uint32_t>,
1> A3=boost::_bi::value<uint16_t>,
1> A4=boost::_bi::value<uint16_t>,
1> F=boost::_mfi::mf3<bool,Game,uint32_t,uint16_t,uint8_t>,
1> T=bool,
1> A=boost::_bi::list0
1> ]
1> C:\boost\boost/bind/bind_template.hpp(18) : while compiling class template member function 'bool boost::_bi::bind_t<R,F,L>::operator ()(void)'
1> with
1> [
1> R=bool,
1> F=boost::_mfi::mf3<bool,Game,uint32_t,uint16_t,uint8_t>,
1> L=boost::_bi::list4<boost::_bi::value<Game *>,boost::_bi::value<uint32_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>>
1> ]
1> C:\boost\boost/function/function_template.hpp(153) : see reference to function template instantiation 'bool boost::_bi::bind_t<R,F,L>::operator ()(void)' being compiled
1> with
1> [
1> R=bool,
1> F=boost::_mfi::mf3<bool,Game,uint32_t,uint16_t,uint8_t>,
1> L=boost::_bi::list4<boost::_bi::value<Game *>,boost::_bi::value<uint32_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>>
1> ]
1> ..\protocolgame.cpp(1486) : see reference to class template instantiation 'boost::_bi::bind_t<R,F,L>' being compiled
1> with
1> [
1> R=bool,
1> F=boost::_mfi::mf3<bool,Game,uint32_t,uint16_t,uint8_t>,
1> L=boost::_bi::list4<boost::_bi::value<Game *>,boost::_bi::value<uint32_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>>
1> ]
1>C:\boost\boost/bind/bind.hpp(660): warning C4244: 'argument' : conversion from 'uint16_t' to 'uint8_t', possible loss of data (..\protocolgame.cpp)
1> C:\boost\boost/bind/bind_template.hpp(20) : see reference to function template instantiation 'R boost::_bi::list7<A1,A2,A3,A4,A5,A6,A7>::operator ()<bool,F,boost::_bi::list0>(boost::_bi::type<T>,F &,A &,long)' being compiled
1> with
1> [
1> R=bool,
1> A1=boost::_bi::value<Game *>,
1> A2=boost::_bi::value<uint32_t>,
1> A3=boost::_bi::value<uint16_t>,
1> A4=boost::_bi::value<uint16_t>,
1> A5=boost::_bi::value<uint16_t>,
1> A6=boost::_bi::value<bool>,
1> A7=boost::_bi::value<bool>,
1> F=boost::_mfi::mf6<bool,Game,uint32_t,uint16_t,uint8_t,uint8_t,bool,bool>,
1> T=bool,
1> A=boost::_bi::list0
1> ]
1> C:\boost\boost/bind/bind_template.hpp(20) : see reference to function template instantiation 'R boost::_bi::list7<A1,A2,A3,A4,A5,A6,A7>::operator ()<bool,F,boost::_bi::list0>(boost::_bi::type<T>,F &,A &,long)' being compiled
1> with
1> [
1> R=bool,
1> A1=boost::_bi::value<Game *>,
1> A2=boost::_bi::value<uint32_t>,
1> A3=boost::_bi::value<uint16_t>,
1> A4=boost::_bi::value<uint16_t>,
1> A5=boost::_bi::value<uint16_t>,
1> A6=boost::_bi::value<bool>,
1> A7=boost::_bi::value<bool>,
1> F=boost::_mfi::mf6<bool,Game,uint32_t,uint16_t,uint8_t,uint8_t,bool,bool>,
1> T=bool,
1> A=boost::_bi::list0
1> ]
1> C:\boost\boost/bind/bind_template.hpp(18) : while compiling class template member function 'bool boost::_bi::bind_t<R,F,L>::operator ()(void)'
1> with
1> [
1> R=bool,
1> F=boost::_mfi::mf6<bool,Game,uint32_t,uint16_t,uint8_t,uint8_t,bool,bool>,
1> L=boost::_bi::list7<boost::_bi::value<Game *>,boost::_bi::value<uint32_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>,boost::_bi::value<bool>,boost::_bi::value<bool>>
1> ]
1> C:\boost\boost/function/function_template.hpp(153) : see reference to function template instantiation 'bool boost::_bi::bind_t<R,F,L>::operator ()(void)' being compiled
1> with
1> [
1> R=bool,
1> F=boost::_mfi::mf6<bool,Game,uint32_t,uint16_t,uint8_t,uint8_t,bool,bool>,
1> L=boost::_bi::list7<boost::_bi::value<Game *>,boost::_bi::value<uint32_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>,boost::_bi::value<bool>,boost::_bi::value<bool>>
1> ]
1> ..\protocolgame.cpp(1496) : see reference to class template instantiation 'boost::_bi::bind_t<R,F,L>' being compiled
1> with
1> [
1> R=bool,
1> F=boost::_mfi::mf6<bool,Game,uint32_t,uint16_t,uint8_t,uint8_t,bool,bool>,
1> L=boost::_bi::list7<boost::_bi::value<Game *>,boost::_bi::value<uint32_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>,boost::_bi::value<bool>,boost::_bi::value<bool>>
1> ]
1>C:\boost\boost/bind/bind.hpp(515): warning C4244: 'argument' : conversion from 'uint16_t' to 'uint8_t', possible loss of data (..\protocolgame.cpp)
1> C:\boost\boost/bind/bind_template.hpp(20) : see reference to function template instantiation 'R boost::_bi::list5<A1,A2,A3,A4,A5>::operator ()<bool,F,boost::_bi::list0>(boost::_bi::type<T>,F &,A &,long)' being compiled
1> with
1> [
1> R=bool,
1> A1=boost::_bi::value<Game *>,
1> A2=boost::_bi::value<uint32_t>,
1> A3=boost::_bi::value<uint16_t>,
1> A4=boost::_bi::value<uint16_t>,
1> A5=boost::_bi::value<uint16_t>,
1> F=boost::_mfi::mf4<bool,Game,uint32_t,uint16_t,uint8_t,uint8_t>,
1> T=bool,
1> A=boost::_bi::list0
1> ]
1> C:\boost\boost/bind/bind_template.hpp(20) : see reference to function template instantiation 'R boost::_bi::list5<A1,A2,A3,A4,A5>::operator ()<bool,F,boost::_bi::list0>(boost::_bi::type<T>,F &,A &,long)' being compiled
1> with
1> [
1> R=bool,
1> A1=boost::_bi::value<Game *>,
1> A2=boost::_bi::value<uint32_t>,
1> A3=boost::_bi::value<uint16_t>,
1> A4=boost::_bi::value<uint16_t>,
1> A5=boost::_bi::value<uint16_t>,
1> F=boost::_mfi::mf4<bool,Game,uint32_t,uint16_t,uint8_t,uint8_t>,
1> T=bool,
1> A=boost::_bi::list0
1> ]
1> C:\boost\boost/bind/bind_template.hpp(18) : while compiling class template member function 'bool boost::_bi::bind_t<R,F,L>::operator ()(void)'
1> with
1> [
1> R=bool,
1> F=boost::_mfi::mf4<bool,Game,uint32_t,uint16_t,uint8_t,uint8_t>,
1> L=boost::_bi::list5<boost::_bi::value<Game *>,boost::_bi::value<uint32_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>>
1> ]
1> C:\boost\boost/function/function_template.hpp(153) : see reference to function template instantiation 'bool boost::_bi::bind_t<R,F,L>::operator ()(void)' being compiled
1> with
1> [
1> R=bool,
1> F=boost::_mfi::mf4<bool,Game,uint32_t,uint16_t,uint8_t,uint8_t>,
1> L=boost::_bi::list5<boost::_bi::value<Game *>,boost::_bi::value<uint32_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>>
1> ]
1> ..\protocolgame.cpp(1504) : see reference to class template instantiation 'boost::_bi::bind_t<R,F,L>' being compiled
1> with
1> [
1> R=bool,
1> F=boost::_mfi::mf4<bool,Game,uint32_t,uint16_t,uint8_t,uint8_t>,
1> L=boost::_bi::list5<boost::_bi::value<Game *>,boost::_bi::value<uint32_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>,boost::_bi::value<uint16_t>>
Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

  • 0

Puts, o mais recente que ja tinha compilado com otserv foi 1.55, aconselho a tu compilar com um codeblocks da vida usando um compilador mais antigo, ou entao tenta ver no changelog do boost e adaptar o codigo ao novo boost, mas nao acho que isso seja rapido nao man e melhor usar o codeblocks mesmo

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...