ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.41k stars 2.81k forks source link

i can't build succeeful with vs2012 in windows7 #229

Closed loyalpartner closed 11 years ago

loyalpartner commented 11 years ago

here is the output infomation.... could someone got same error like me?

1>------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
2>------ Build started: Project: ycm_core, Configuration: Release Win32 ------
2>  ClangCompleter.cpp
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(184): error C2668: 'boost::bind' : ambiguous call to overloaded function
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/bind/bind_mf_cc.hpp(91): could be 'boost::_bi::bind_t<R,F,L> boost::bind<void,YouCompleteMe::ClangCompleter,const std::string&,const std::vector<_Ty>&,const std::vector<std::string>&,boost::reference_wrapper<T>,std::basic_string<_Elem,_Traits,_Alloc>,std::vector<_Ty>,std::vector<std::string>>(R (__thiscall YouCompleteMe::ClangCompleter::* )(B1,B2,B3),A1,A2,A3,A4)'
2>          with
2>          [
2>              R=void,
2>              F=boost::_mfi::mf3<void,YouCompleteMe::ClangCompleter,const std::string &,const std::vector<UnsavedFile> &,const std::vector<std::string> &>,
2>              L=boost::_bi::list4<boost::reference_wrapper<YouCompleteMe::ClangCompleter>,boost::_bi::value<std::basic_string<char,std::char_traits<char>,std::allocator<char>>>,boost::_bi::value<std::vector<UnsavedFile>>,boost::_bi::value<std::vector<std::string>>>,
2>              _Ty=UnsavedFile,
2>              T=YouCompleteMe::ClangCompleter,
2>              _Elem=char,
2>              _Traits=std::char_traits<char>,
2>              _Alloc=std::allocator<char>,
2>              B1=const std::string &,
2>              B2=const std::vector<UnsavedFile> &,
2>              B3=const std::vector<std::string> &,
2>              A1=boost::reference_wrapper<YouCompleteMe::ClangCompleter>,
2>              A2=std::basic_string<char,std::char_traits<char>,std::allocator<char>>,
2>              A3=std::vector<UnsavedFile>,
2>              A4=std::vector<std::string>
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\functional(1387): or       'std::_Bind<_Forced,_Ret,_Fun,_V0_t,_V1_t,_V2_t,_V3_t,_V4_t,_V5_t,<unnamed-symbol>> std::bind<void,YouCompleteMe::ClangCompleter,const std::string&,const std::vector<_Ty>&,const std::vector<std::string>&,const boost::reference_wrapper<T>,std::basic_string<_Elem,_Traits,_Alloc>,std::vector<_Ty>,std::vector<std::string>>(_Rx (__thiscall YouCompleteMe::ClangCompleter::* const )(const std::basic_string<_Elem,_Traits,_Alloc>,const std::vector<_Ty>,const std::vector<std::string>),_Vx0_t &&,_Vx1_t &&,_Vx2_t &&,_Vx3_t &&)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Forced=true,
2>              _Ret=void,
2>              _Fun=std::_Pmf_wrap<void (__thiscall YouCompleteMe::ClangCompleter::* )(const std::string &,const std::vector<UnsavedFile> &,const std::vector<std::string> &),void,YouCompleteMe::ClangCompleter,const std::string &,const std::vector<UnsavedFile> &,const std::vector<std::string> &,std::_Nil,std::_Nil,std::_Nil,std::_Nil>,
2>              _V0_t=const boost::reference_wrapper<YouCompleteMe::ClangCompleter>,
2>              _V1_t=std::basic_string<char,std::char_traits<char>,std::allocator<char>>,
2>              _V2_t=std::vector<UnsavedFile>,
2>              _V3_t=std::vector<std::string>,
2>              _V4_t=std::_Nil,
2>              _V5_t=std::_Nil,
2>              <unnamed-symbol>=std::_Nil,
2>              _Ty=UnsavedFile,
2>              T=YouCompleteMe::ClangCompleter,
2>              _Elem=char,
2>              _Traits=std::char_traits<char>,
2>              _Alloc=std::allocator<char>,
2>              _Rx=void,
2>              _Vx0_t=const boost::reference_wrapper<YouCompleteMe::ClangCompleter>,
2>              _Vx1_t=std::basic_string<char,std::char_traits<char>,std::allocator<char>>,
2>              _Vx2_t=std::vector<UnsavedFile>,
2>              _Vx3_t=std::vector<std::string>
2>          ]
2>          while trying to match the argument list '(void (__thiscall YouCompleteMe::ClangCompleter::* )(const std::string &,const std::vector<_Ty> &,const std::vector<std::string> &), const boost::reference_wrapper<T>, std::basic_string<_Elem,_Traits,_Alloc>, std::vector<_Ty>, std::vector<_Ty>)'
2>          with
2>          [
2>              _Ty=UnsavedFile
2>          ]
2>          and
2>          [
2>              T=YouCompleteMe::ClangCompleter
2>          ]
2>          and
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>,
2>              _Alloc=std::allocator<char>
2>          ]
2>          and
2>          [
2>              _Ty=UnsavedFile
2>          ]
2>          and
2>          [
2>              _Ty=std::string
2>          ]
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(339): error C2668: 'boost::bind' : ambiguous call to overloaded function
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/bind/bind_mf_cc.hpp(67): could be 'boost::_bi::bind_t<R,F,L> boost::bind<std::vector<_Ty>,YouCompleteMe::ClangCompleter,const std::string&,const std::vector<_Ty>&,boost::reference_wrapper<T>,std::string,boost::arg<I>>(R (__thiscall YouCompleteMe::ClangCompleter::* )(B1,B2),A1,A2,A3)'
2>          with
2>          [
2>              R=std::vector<YouCompleteMe::CompletionData>,
2>              F=boost::_mfi::mf2<std::vector<YouCompleteMe::CompletionData>,YouCompleteMe::ClangCompleter,const std::string &,const std::vector<YouCompleteMe::CompletionData> &>,
2>              L=boost::_bi::list3<boost::reference_wrapper<YouCompleteMe::ClangCompleter>,boost::_bi::value<std::basic_string<char,std::char_traits<char>,std::allocator<char>>>,boost::arg<1>>,
2>              _Ty=YouCompleteMe::CompletionData,
2>              T=YouCompleteMe::ClangCompleter,
2>              I=1,
2>              B1=const std::string &,
2>              B2=const std::vector<YouCompleteMe::CompletionData> &,
2>              A1=boost::reference_wrapper<YouCompleteMe::ClangCompleter>,
2>              A2=std::string,
2>              A3=boost::arg<1>
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\functional(1387): or       'std::_Bind<_Forced,_Ret,_Fun,_V0_t,_V1_t,_V2_t,_V3_t,_V4_t,_V5_t,<unnamed-symbol>> std::bind<std::vector<_Ty>,YouCompleteMe::ClangCompleter,const std::string&,const std::vector<_Ty>&,const boost::reference_wrapper<T>,const std::string&,boost::arg<I>&>(_Rx (__thiscall YouCompleteMe::ClangCompleter::* const )(const std::basic_string<_Elem,_Traits,_Alloc>,const std::vector<_Ty>),_Vx0_t &&,_Vx1_t,_Vx2_t)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Forced=true,
2>              _Ret=std::vector<YouCompleteMe::CompletionData>,
2>              _Fun=std::_Pmf_wrap<std::vector<YouCompleteMe::CompletionData> (__thiscall YouCompleteMe::ClangCompleter::* )(const std::string &,const std::vector<YouCompleteMe::CompletionData> &),std::vector<YouCompleteMe::CompletionData>,YouCompleteMe::ClangCompleter,const std::string &,const std::vector<YouCompleteMe::CompletionData> &,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil>,
2>              _V0_t=const boost::reference_wrapper<YouCompleteMe::ClangCompleter>,
2>              _V1_t=const std::string &,
2>              _V2_t=boost::arg<1> &,
2>              _V3_t=std::_Nil,
2>              _V4_t=std::_Nil,
2>              _V5_t=std::_Nil,
2>              <unnamed-symbol>=std::_Nil,
2>              _Ty=YouCompleteMe::CompletionData,
2>              T=YouCompleteMe::ClangCompleter,
2>              I=1,
2>              _Rx=std::vector<YouCompleteMe::CompletionData>,
2>              _Elem=char,
2>              _Traits=std::char_traits<char>,
2>              _Alloc=std::allocator<char>,
2>              _Vx0_t=const boost::reference_wrapper<YouCompleteMe::ClangCompleter>,
2>              _Vx1_t=const std::string &,
2>              _Vx2_t=boost::arg<1> &
2>          ]
2>          while trying to match the argument list '(std::vector<_Ty> (__thiscall YouCompleteMe::ClangCompleter::* )(const std::string &,const std::vector<_Ty> &), const boost::reference_wrapper<T>, const std::string, boost::arg<I>)'
2>          with
2>          [
2>              _Ty=YouCompleteMe::CompletionData
2>          ]
2>          and
2>          [
2>              T=YouCompleteMe::ClangCompleter
2>          ]
2>          and
2>          [
2>              I=1
2>          ]
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(344): error C2668: 'boost::bind' : ambiguous call to overloaded function
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/bind/bind_mf_cc.hpp(54): could be 'boost::_bi::bind_t<R,F,L> boost::bind<T,YouCompleteMe::ClangResultsCache,boost::function<Signature>,boost::reference_wrapper<const YouCompleteMe::ClangResultsCache>,boost::function<Signature>>(R (__thiscall YouCompleteMe::ClangResultsCache::* )(B1) const,A1,A2)'
2>          with
2>          [
2>              R=YouCompleteMe::CompletionDatas,
2>              F=boost::_mfi::cmf1<YouCompleteMe::CompletionDatas,YouCompleteMe::ClangResultsCache,boost::function<YouCompleteMe::CompletionDatas (const YouCompleteMe::CompletionDatas &)>>,
2>              L=boost::_bi::list2<boost::reference_wrapper<const YouCompleteMe::ClangResultsCache>,boost::_bi::value<boost::function<YouCompleteMe::CompletionDatas (const YouCompleteMe::CompletionDatas &)>>>,
2>              T=YouCompleteMe::CompletionDatas,
2>              Signature=YouCompleteMe::CompletionDatas (const YouCompleteMe::CompletionDatas &),
2>              B1=boost::function<YouCompleteMe::CompletionDatas (const YouCompleteMe::CompletionDatas &)>,
2>              A1=boost::reference_wrapper<const YouCompleteMe::ClangResultsCache>,
2>              A2=boost::function<YouCompleteMe::CompletionDatas (const YouCompleteMe::CompletionDatas &)>
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\functional(1387): or       'std::_Bind<_Forced,_Ret,_Fun,_V0_t,_V1_t,_V2_t,_V3_t,_V4_t,_V5_t,<unnamed-symbol>> std::bind<T,YouCompleteMe::ClangResultsCache,boost::function<Signature>,const boost::reference_wrapper<const YouCompleteMe::ClangResultsCache>,boost::function<Signature>>(_Rx (__thiscall YouCompleteMe::ClangResultsCache::* const )(boost::function<Signature>) const,_Vx0_t &&,_Vx1_t &&)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Forced=true,
2>              _Ret=YouCompleteMe::CompletionDatas,
2>              _Fun=std::_Pmf_wrap<YouCompleteMe::CompletionDatas (__thiscall YouCompleteMe::ClangResultsCache::* )(boost::function<YouCompleteMe::CompletionDatas (const YouCompleteMe::CompletionDatas &)>) const,YouCompleteMe::CompletionDatas,YouCompleteMe::ClangResultsCache,boost::function<YouCompleteMe::CompletionDatas (const YouCompleteMe::CompletionDatas &)>,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil>,
2>              _V0_t=const boost::reference_wrapper<const YouCompleteMe::ClangResultsCache>,
2>              _V1_t=boost::function<YouCompleteMe::CompletionDatas (const YouCompleteMe::CompletionDatas &)>,
2>              _V2_t=std::_Nil,
2>              _V3_t=std::_Nil,
2>              _V4_t=std::_Nil,
2>              _V5_t=std::_Nil,
2>              <unnamed-symbol>=std::_Nil,
2>              T=YouCompleteMe::CompletionDatas,
2>              Signature=YouCompleteMe::CompletionDatas (const YouCompleteMe::CompletionDatas &),
2>              _Rx=YouCompleteMe::CompletionDatas,
2>              _Vx0_t=const boost::reference_wrapper<const YouCompleteMe::ClangResultsCache>,
2>              _Vx1_t=boost::function<YouCompleteMe::CompletionDatas (const YouCompleteMe::CompletionDatas &)>
2>          ]
2>          while trying to match the argument list '(overloaded-function, const boost::reference_wrapper<T>, boost::function<Signature>)'
2>          with
2>          [
2>              T=const YouCompleteMe::ClangResultsCache
2>          ]
2>          and
2>          [
2>              Signature=YouCompleteMe::CompletionDatas (const YouCompleteMe::CompletionDatas &)
2>          ]
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(349): error C2668: 'boost::bind' : ambiguous call to overloaded function
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/bind/bind_cc.hpp(26): could be 'boost::_bi::bind_t<R,F,L> boost::bind<boost::shared_ptr<T>,boost::function<Signature>,boost::function<Signature>>(R (__cdecl *)(B1),A1)'
2>          with
2>          [
2>              R=boost::shared_ptr<YouCompleteMe::CompletionDatas>,
2>              F=boost::shared_ptr<YouCompleteMe::CompletionDatas> (__cdecl *)(boost::function<YouCompleteMe::CompletionDatas (void)>),
2>              L=boost::_bi::list1<boost::_bi::value<boost::function<YouCompleteMe::CompletionDatas (void)>>>,
2>              T=YouCompleteMe::CompletionDatas,
2>              Signature=YouCompleteMe::CompletionDatas (void),
2>              B1=boost::function<YouCompleteMe::CompletionDatas (void)>,
2>              A1=boost::function<YouCompleteMe::CompletionDatas (void)>
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\functional(1387): or       'std::_Bind<_Forced,_Ret,_Fun,_V0_t,_V1_t,_V2_t,_V3_t,_V4_t,_V5_t,<unnamed-symbol>> std::bind<boost::shared_ptr<T>,boost::function<Signature>,boost::function<Signature>>(_Rx (__cdecl *)(_V0_t),_Vx0_t &&)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Forced=true,
2>              _Ret=boost::shared_ptr<YouCompleteMe::CompletionDatas>,
2>              _Fun=boost::shared_ptr<YouCompleteMe::CompletionDatas> (__cdecl *const )(boost::function<YouCompleteMe::CompletionDatas (void)>),
2>              _V0_t=boost::function<YouCompleteMe::CompletionDatas (void)>,
2>              _V1_t=std::_Nil,
2>              _V2_t=std::_Nil,
2>              _V3_t=std::_Nil,
2>              _V4_t=std::_Nil,
2>              _V5_t=std::_Nil,
2>              <unnamed-symbol>=std::_Nil,
2>              T=YouCompleteMe::CompletionDatas,
2>              Signature=YouCompleteMe::CompletionDatas (void),
2>              _Rx=boost::shared_ptr<YouCompleteMe::CompletionDatas>,
2>              _Vx0_t=boost::function<YouCompleteMe::CompletionDatas (void)>
2>          ]
2>          while trying to match the argument list '(overloaded-function, boost::function<Signature>)'
2>          with
2>          [
2>              Signature=YouCompleteMe::CompletionDatas (void)
2>          ]
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(349): error C2780: 'boost::detail::sp_if_not_array<T>::type boost::make_shared(void)' : expects 0 arguments - 1 provided
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/smart_ptr/make_shared_object.hpp(134) : see declaration of 'boost::make_shared'
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(349): error C2780: 'boost::detail::sp_if_not_array<T>::type boost::make_shared(A1 &&,A2 &&)' : expects 2 arguments - 1 provided
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/smart_ptr/make_shared_object.hpp(287) : see declaration of 'boost::make_shared'
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(349): error C2780: 'boost::detail::sp_if_not_array<T>::type boost::make_shared(A1 &&,A2 &&,A3 &&)' : expects 3 arguments - 1 provided
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/smart_ptr/make_shared_object.hpp(331) : see declaration of 'boost::make_shared'
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(349): error C2780: 'boost::detail::sp_if_not_array<T>::type boost::make_shared(A1 &&,A2 &&,A3 &&,A4 &&)' : expects 4 arguments - 1 provided
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/smart_ptr/make_shared_object.hpp(377) : see declaration of 'boost::make_shared'
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(349): error C2780: 'boost::detail::sp_if_not_array<T>::type boost::make_shared(A1 &&,A2 &&,A3 &&,A4 &&,A5 &&)' : expects 5 arguments - 1 provided
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/smart_ptr/make_shared_object.hpp(425) : see declaration of 'boost::make_shared'
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(349): error C2780: 'boost::detail::sp_if_not_array<T>::type boost::make_shared(A1 &&,A2 &&,A3 &&,A4 &&,A5 &&,A6 &&)' : expects 6 arguments - 1 provided
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/smart_ptr/make_shared_object.hpp(475) : see declaration of 'boost::make_shared'
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(349): error C2780: 'boost::detail::sp_if_not_array<T>::type boost::make_shared(A1 &&,A2 &&,A3 &&,A4 &&,A5 &&,A6 &&,A7 &&)' : expects 7 arguments - 1 provided
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/smart_ptr/make_shared_object.hpp(527) : see declaration of 'boost::make_shared'
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(349): error C2780: 'boost::detail::sp_if_not_array<T>::type boost::make_shared(A1 &&,A2 &&,A3 &&,A4 &&,A5 &&,A6 &&,A7 &&,A8 &&)' : expects 8 arguments - 1 provided
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/smart_ptr/make_shared_object.hpp(581) : see declaration of 'boost::make_shared'
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(349): error C2780: 'boost::detail::sp_if_not_array<T>::type boost::make_shared(A1 &&,A2 &&,A3 &&,A4 &&,A5 &&,A6 &&,A7 &&,A8 &&,A9 &&)' : expects 9 arguments - 1 provided
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/smart_ptr/make_shared_object.hpp(637) : see declaration of 'boost::make_shared'
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(349): error C2770: invalid explicit template argument(s) for 'boost::detail::sp_if_array<T>::type boost::make_shared(size_t)'
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/smart_ptr/make_shared_array.hpp(24) : see declaration of 'boost::make_shared'
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(379): error C2668: 'boost::bind' : ambiguous call to overloaded function
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/bind/bind_cc.hpp(26): could be 'boost::_bi::bind_t<R,F,L> boost::bind<boost::shared_ptr<T>,boost::function<Signature>,boost::function<Signature>>(R (__cdecl *)(B1),A1)'
2>          with
2>          [
2>              R=boost::shared_ptr<YouCompleteMe::CompletionDatas>,
2>              F=boost::shared_ptr<YouCompleteMe::CompletionDatas> (__cdecl *)(boost::function<YouCompleteMe::CompletionDatas (void)>),
2>              L=boost::_bi::list1<boost::_bi::value<boost::function<YouCompleteMe::CompletionDatas (void)>>>,
2>              T=YouCompleteMe::CompletionDatas,
2>              Signature=YouCompleteMe::CompletionDatas (void),
2>              B1=boost::function<YouCompleteMe::CompletionDatas (void)>,
2>              A1=boost::function<YouCompleteMe::CompletionDatas (void)>
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\functional(1387): or       'std::_Bind<_Forced,_Ret,_Fun,_V0_t,_V1_t,_V2_t,_V3_t,_V4_t,_V5_t,<unnamed-symbol>> std::bind<boost::shared_ptr<T>,boost::function<Signature>,boost::function<Signature>>(_Rx (__cdecl *)(_V0_t),_Vx0_t &&)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Forced=true,
2>              _Ret=boost::shared_ptr<YouCompleteMe::CompletionDatas>,
2>              _Fun=boost::shared_ptr<YouCompleteMe::CompletionDatas> (__cdecl *const )(boost::function<YouCompleteMe::CompletionDatas (void)>),
2>              _V0_t=boost::function<YouCompleteMe::CompletionDatas (void)>,
2>              _V1_t=std::_Nil,
2>              _V2_t=std::_Nil,
2>              _V3_t=std::_Nil,
2>              _V4_t=std::_Nil,
2>              _V5_t=std::_Nil,
2>              <unnamed-symbol>=std::_Nil,
2>              T=YouCompleteMe::CompletionDatas,
2>              Signature=YouCompleteMe::CompletionDatas (void),
2>              _Rx=boost::shared_ptr<YouCompleteMe::CompletionDatas>,
2>              _Vx0_t=boost::function<YouCompleteMe::CompletionDatas (void)>
2>          ]
2>          while trying to match the argument list '(overloaded-function, boost::function<Signature>)'
2>          with
2>          [
2>              Signature=YouCompleteMe::CompletionDatas (void)
2>          ]
2>..\..\ycm\ClangCompleter\ClangCompleter.cpp(422): error C2668: 'boost::make_shared' : ambiguous call to overloaded function
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/smart_ptr/make_shared_object.hpp(377): could be 'boost::shared_ptr<T> boost::make_shared<YouCompleteMe::TranslationUnit,const std::string&,const std::vector<_Ty>&,const std::vector<std::string>&,CXIndex&>(A1,A2,A3,A4)'
2>          with
2>          [
2>              T=YouCompleteMe::TranslationUnit,
2>              _Ty=UnsavedFile,
2>              A1=const std::string &,
2>              A2=const std::vector<UnsavedFile> &,
2>              A3=const std::vector<std::string> &,
2>              A4=CXIndex &
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\memory(972): or       'std::shared_ptr<_Ty> std::make_shared<YouCompleteMe::TranslationUnit,const std::string&,const std::vector<UnsavedFile>&,const std::vector<std::string>&,CXIndex&>(_V0_t,_V1_t,_V2_t,_V3_t)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Ty=YouCompleteMe::TranslationUnit,
2>              _V0_t=const std::string &,
2>              _V1_t=const std::vector<UnsavedFile> &,
2>              _V2_t=const std::vector<std::string> &,
2>              _V3_t=CXIndex &
2>          ]
2>          while trying to match the argument list '(const std::string, const std::vector<_Ty>, const std::vector<_Ty>, CXIndex)'
2>          with
2>          [
2>              _Ty=UnsavedFile
2>          ]
2>          and
2>          [
2>              _Ty=std::string
2>          ]
2>  CompilationDatabase.cpp
2>..\..\ycm\ClangCompleter\CompilationDatabase.cpp(134): error C2668: 'boost::bind' : ambiguous call to overloaded function
2>          C:/Users/GaoPP/YouCompleteMe/cpp/BoostParts\boost/bind/bind_mf_cc.hpp(43): could be 'boost::_bi::bind_t<R,F,L> boost::bind<YouCompleteMe::CompilationInfoForFile,YouCompleteMe::CompilationDatabase,const std::string&,boost::reference_wrapper<T>,std::string>(R (__thiscall YouCompleteMe::CompilationDatabase::* )(B1),A1,A2)'
2>          with
2>          [
2>              R=YouCompleteMe::CompilationInfoForFile,
2>              F=boost::_mfi::mf1<YouCompleteMe::CompilationInfoForFile,YouCompleteMe::CompilationDatabase,const std::string &>,
2>              L=boost::_bi::list2<boost::reference_wrapper<YouCompleteMe::CompilationDatabase>,boost::_bi::value<std::string>>,
2>              T=YouCompleteMe::CompilationDatabase,
2>              B1=const std::string &,
2>              A1=boost::reference_wrapper<YouCompleteMe::CompilationDatabase>,
2>              A2=std::string
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\functional(1387): or       'std::_Bind<_Forced,_Ret,_Fun,_V0_t,_V1_t,_V2_t,_V3_t,_V4_t,_V5_t,<unnamed-symbol>> std::bind<YouCompleteMe::CompilationInfoForFile,YouCompleteMe::CompilationDatabase,const std::string&,const boost::reference_wrapper<T>,const std::string&>(_Rx (__thiscall YouCompleteMe::CompilationDatabase::* const )(const std::basic_string<_Elem,_Traits,_Alloc>),_Vx0_t &&,_Vx1_t)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Forced=true,
2>              _Ret=YouCompleteMe::CompilationInfoForFile,
2>              _Fun=std::_Pmf_wrap<YouCompleteMe::CompilationInfoForFile (__thiscall YouCompleteMe::CompilationDatabase::* )(const std::string &),YouCompleteMe::CompilationInfoForFile,YouCompleteMe::CompilationDatabase,const std::string &,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil,std::_Nil>,
2>              _V0_t=const boost::reference_wrapper<YouCompleteMe::CompilationDatabase>,
2>              _V1_t=const std::string &,
2>              _V2_t=std::_Nil,
2>              _V3_t=std::_Nil,
2>              _V4_t=std::_Nil,
2>              _V5_t=std::_Nil,
2>              <unnamed-symbol>=std::_Nil,
2>              T=YouCompleteMe::CompilationDatabase,
2>              _Rx=YouCompleteMe::CompilationInfoForFile,
2>              _Elem=char,
2>              _Traits=std::char_traits<char>,
2>              _Alloc=std::allocator<char>,
2>              _Vx0_t=const boost::reference_wrapper<YouCompleteMe::CompilationDatabase>,
2>              _Vx1_t=const std::string &
2>          ]
2>          while trying to match the argument list '(YouCompleteMe::CompilationInfoForFile (__thiscall YouCompleteMe::CompilationDatabase::* )(const std::string &), const boost::reference_wrapper<T>, const std::string)'
2>          with
2>          [
2>              T=YouCompleteMe::CompilationDatabase
2>          ]
2>  Generating Code...
========== Build: 1 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
Valloric commented 11 years ago

There's no official support for building or running YCM on Windows, as the docs state. Pull requests that fix Windows-related issues are welcome though.

loyalpartner commented 11 years ago

@Valloric i have build succesefull!!! it's hard to do it for me because i just a newer! I see that many people are unable to successfully compile , i want to share my exp ,but i didn't know where i can share in here