Hello, I'm trying to build LyX with MSVC 10.0 but I receive the following
error. Any idea on how to solve? The code comes from the 1.6.x branch.
Thanks in advance. Great work! ;)
venom00
cl /Forelease\src\frontends\qt4\GuiCommandBuffer.obj /c
D:\unzipped\lyx166\BRANCH_1_6_X\src\frontends\qt4\GuiCommandBuffer.cpp /TP
/Zc:wchar_t- /ID:\unzipped\lyx166\BRANCH_1_6_X/boost /nologo /EHsc /wd4819
/wd4996 /nologo /MD /O2 -DHAVE_CONFIG_H -DQT_NO_STL -DQT_NO_KEYWORDS
-DQT_GUI_LIB
/ID:\unzipped\lyx166\BRANCH_1_6_X\lyx-windows-deps-msvc2008\include
/Irelease\src /ID:\unzipped\lyx166\BRANCH_1_6_X\src
/ID:\unzipped\lyx166\BRANCH_1_6_X\src
/ID:\unzipped\lyx166\BRANCH_1_6_X\lyx-windows-deps-msvc2008\qt-4\include
/ID:\unzipped\lyx166\BRANCH_1_6_X\lyx-windows-deps-msvc2008\qt-4\include\QtC
ore
/ID:\unzipped\lyx166\BRANCH_1_6_X\lyx-windows-deps-msvc2008\qt-4\include\QtG
ui /Irelease\src /ID:\unzipped\lyx166\BRANCH_1_6_X\src /Irelease\src\images
/ID:\unzipped\lyx166\BRANCH_1_6_X\src\images /Irelease\src\frontends
/ID:\unzipped\lyx166\BRANCH_1_6_X\src\frontends /Irelease\src\frontends\qt4
/ID:\unzipped\lyx166\BRANCH_1_6_X\src\frontends\qt4
/Irelease\src\frontends\qt4\ui
/ID:\unzipped\lyx166\BRANCH_1_6_X\src\frontends\qt4\ui
GuiCommandBuffer.cpp
D:\unzipped\lyx166\BRANCH_1_6_X\src\frontends\qt4\GuiCommandBuffer.cpp(319)
: error C2668: 'lyx::copy_if' : ambiguous call to overloaded function
D:\unzipped\lyx166\BRANCH_1_6_X\src\support/lyxalgo.h(64): could be
'OutputIter
lyx::copy_if<std::_Vector_iterator<_Myvec>,std::back_insert_iterator<_Contai
ner>,lyx::frontend::`anonymous-namespace'::prefix_p>(InputIter,InputIter,Out
putIter,Func)'
with
[
OutputIter=std::back_insert_iterator<std::vector<std::string>>,
_Myvec=std::_Vector_val<std::string,std::allocator<std::string>>,
_Container=std::vector<std::string>,
InputIter=std::_Vector_iterator<std::_Vector_val<std::string,std::allocator<
std::string>>>,
Func=lyx::frontend::`anonymous-namespace'::prefix_p
]
C:\Program Files\programmazione\Microsoft Visual Studio
10.0\VC\include\algorithm(285): or '_OutIt
std::copy_if<std::_Vector_iterator<_Myvec>,std::back_insert_iterator<_Contai
ner>,lyx::frontend::`anonymous-namespace'::prefix_p>(_InIt,_InIt,_OutIt,_Pr)
' [found using argument-dependent lookup]
with
[
_OutIt=std::back_insert_iterator<std::vector<std::string>>,
_Myvec=std::_Vector_val<std::string,std::allocator<std::string>>,
_Container=std::vector<std::string>,
_InIt=std::_Vector_iterator<std::_Vector_val<std::string,std::allocator<std:
:string>>>,
_Pr=lyx::frontend::`anonymous-namespace'::prefix_p
]
while trying to match the argument list
'(std::_Vector_iterator<_Myvec>, std::_Vector_iterator<_Myvec>,
std::back_insert_iterator<_Container>,
lyx::frontend::`anonymous-namespace'::prefix_p)'
with
[
_Myvec=std::_Vector_val<std::string,std::allocator<std::string>>
]
and
[
_Myvec=std::_Vector_val<std::string,std::allocator<std::string>>
]
and
[
_Container=std::vector<std::string>
]
D:\unzipped\lyx166\BRANCH_1_6_X\src\frontends\qt4\GuiCommandBuffer.cpp(339)
: error C2668: 'lyx::copy_if' : ambiguous call to overloaded function
D:\unzipped\lyx166\BRANCH_1_6_X\src\support/lyxalgo.h(64): could be
'OutputIter
lyx::copy_if<std::_Vector_iterator<_Myvec>,std::back_insert_iterator<_Contai
ner>,lyx::frontend::`anonymous-namespace'::prefix_p>(InputIter,InputIter,Out
putIter,Func)'
with
[
OutputIter=std::back_insert_iterator<std::vector<std::string>>,
_Myvec=std::_Vector_val<std::string,std::allocator<std::string>>,
_Container=std::vector<std::string>,
InputIter=std::_Vector_iterator<std::_Vector_val<std::string,std::allocator<
std::string>>>,
Func=lyx::frontend::`anonymous-namespace'::prefix_p
]
C:\Program Files\programmazione\Microsoft Visual Studio
10.0\VC\include\algorithm(285): or '_OutIt
std::copy_if<std::_Vector_iterator<_Myvec>,std::back_insert_iterator<_Contai
ner>,lyx::frontend::`anonymous-namespace'::prefix_p>(_InIt,_InIt,_OutIt,_Pr)
' [found using argument-dependent lookup]
with
[
_OutIt=std::back_insert_iterator<std::vector<std::string>>,
_Myvec=std::_Vector_val<std::string,std::allocator<std::string>>,
_Container=std::vector<std::string>,
_InIt=std::_Vector_iterator<std::_Vector_val<std::string,std::allocator<std:
:string>>>,
_Pr=lyx::frontend::`anonymous-namespace'::prefix_p
]
while trying to match the argument list
'(std::_Vector_iterator<_Myvec>, std::_Vector_iterator<_Myvec>,
std::back_insert_iterator<_Container>,
lyx::frontend::`anonymous-namespace'::prefix_p)'
with
[
_Myvec=std::_Vector_val<std::string,std::allocator<std::string>>
]
and
[
_Myvec=std::_Vector_val<std::string,std::allocator<std::string>>
]
and
[
_Container=std::vector<std::string>
]
scons: building terminated because of errors.