TGUI Error Build in VS2012 Express

Started by Elefther, 17 September 2013, 02:47:33

Elefther

I got the std::ptr_fun error  while trying to build TGUI.

This is the snippet of the output:

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
1>  Checking Build System
1>  CMake does not need to re-run because C:/Program Files/Microsoft Visual Studio 11.0/TGUI/build/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/Program Files/Microsoft Visual Studio 11.0/TGUI/build/src/TGUI/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: tgui, Configuration: Debug Win32 ------
2>  Building Custom Rule C:/Program Files/Microsoft Visual Studio 11.0/TGUI/src/TGUI/CMakeLists.txt
2>  CMake does not need to re-run because C:\Program Files\Microsoft Visual Studio 11.0\TGUI\build\src\TGUI\CMakeFiles\generate.stamp is up-to-date.
2>  TGUI.cpp
2>  Callback.cpp
2>  Transformable.cpp
2>  Widget.cpp
2>..\..\..\src\TGUI\Widget.cpp(442): error C2665: 'std::ptr_fun' : none of the 3 overloads could convert all the argument types
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(396): could be 'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__cdecl *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__cdecl *)(int)
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(407): or       'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__stdcall *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__stdcall *)(int)
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(418): or       'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__fastcall *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__fastcall *)(int)
2>          ]
2>          while trying to match the argument list '(overloaded-function)'
2>..\..\..\src\TGUI\Widget.cpp(442): error C2780: '_OutTy *std::transform(_InIt1,_InIt1,_InTy (&)[_InSize],_OutTy (&)[_OutSize],_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1243) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Widget.cpp(442): error C2780: '_OutTy *std::transform(_InIt1,_InIt1,_InIt2,_OutTy (&)[_OutSize],_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1229) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Widget.cpp(442): error C2780: '_OutIt std::transform(_InIt1,_InIt1,_InTy (&)[_InSize],_OutIt,_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1217) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Widget.cpp(442): error C2780: '_OutIt std::transform(_InIt1,_InIt1,_InIt2,_OutIt,_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1198) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Widget.cpp(442): error C2784: '_OutTy *std::transform(_InIt,_InIt,_OutTy (&)[_OutSize],_Fn1)' : could not deduce template argument for '_OutTy (&)[_OutSize]' from 'std::_String_iterator<_Mystr>'
2>          with
2>          [
2>              _Mystr=std::_String_val<std::_Simple_types<char>>
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1075) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Widget.cpp(514): error C2665: 'std::ptr_fun' : none of the 3 overloads could convert all the argument types
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(396): could be 'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__cdecl *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__cdecl *)(int)
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(407): or       'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__stdcall *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__stdcall *)(int)
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(418): or       'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__fastcall *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__fastcall *)(int)
2>          ]
2>          while trying to match the argument list '(overloaded-function)'
2>..\..\..\src\TGUI\Widget.cpp(514): error C2780: '_OutTy *std::transform(_InIt1,_InIt1,_InTy (&)[_InSize],_OutTy (&)[_OutSize],_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1243) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Widget.cpp(514): error C2780: '_OutTy *std::transform(_InIt1,_InIt1,_InIt2,_OutTy (&)[_OutSize],_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1229) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Widget.cpp(514): error C2780: '_OutIt std::transform(_InIt1,_InIt1,_InTy (&)[_InSize],_OutIt,_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1217) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Widget.cpp(514): error C2780: '_OutIt std::transform(_InIt1,_InIt1,_InIt2,_OutIt,_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1198) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Widget.cpp(514): error C2784: '_OutTy *std::transform(_InIt,_InIt,_OutTy (&)[_OutSize],_Fn1)' : could not deduce template argument for '_OutTy (&)[_OutSize]' from 'std::_String_iterator<_Mystr>'
2>          with
2>          [
2>              _Mystr=std::_String_val<std::_Simple_types<char>>
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1075) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Widget.cpp(558): error C2143: syntax error : missing ')' before '{'
2>..\..\..\src\TGUI\Widget.cpp(558): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Widget.cpp(558): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Widget.cpp(558): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Widget.cpp(559): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Widget.cpp(559): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Widget.cpp(559): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Widget.cpp(560): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Widget.cpp(560): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Widget.cpp(560): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Widget.cpp(561): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Widget.cpp(561): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Widget.cpp(561): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Widget.cpp(562): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Widget.cpp(562): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Widget.cpp(562): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Widget.cpp(563): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Widget.cpp(563): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Widget.cpp(563): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Widget.cpp(564): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Widget.cpp(564): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Widget.cpp(564): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Widget.cpp(565): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Widget.cpp(565): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Widget.cpp(565): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Widget.cpp(566): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Widget.cpp(566): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Widget.cpp(566): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Widget.cpp(567): error C2059: syntax error : ')'
2>  Label.cpp
2>..\..\..\src\TGUI\Label.cpp(271): error C2665: 'std::ptr_fun' : none of the 3 overloads could convert all the argument types
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(396): could be 'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__cdecl *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__cdecl *)(int)
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(407): or       'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__stdcall *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__stdcall *)(int)
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(418): or       'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__fastcall *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__fastcall *)(int)
2>          ]
2>          while trying to match the argument list '(overloaded-function)'
2>..\..\..\src\TGUI\Label.cpp(271): error C2780: '_OutTy *std::transform(_InIt1,_InIt1,_InTy (&)[_InSize],_OutTy (&)[_OutSize],_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1243) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Label.cpp(271): error C2780: '_OutTy *std::transform(_InIt1,_InIt1,_InIt2,_OutTy (&)[_OutSize],_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1229) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Label.cpp(271): error C2780: '_OutIt std::transform(_InIt1,_InIt1,_InTy (&)[_InSize],_OutIt,_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1217) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Label.cpp(271): error C2780: '_OutIt std::transform(_InIt1,_InIt1,_InIt2,_OutIt,_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1198) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Label.cpp(271): error C2784: '_OutTy *std::transform(_InIt,_InIt,_OutTy (&)[_OutSize],_Fn1)' : could not deduce template argument for '_OutTy (&)[_OutSize]' from 'std::_String_iterator<_Mystr>'
2>          with
2>          [
2>              _Mystr=std::_String_val<std::_Simple_types<char>>
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1075) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Label.cpp(315): error C2665: 'std::ptr_fun' : none of the 3 overloads could convert all the argument types
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(396): could be 'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__cdecl *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__cdecl *)(int)
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(407): or       'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__stdcall *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__stdcall *)(int)
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\xfunctional(418): or       'std::pointer_to_unary_function<_Arg,_Result,_Fn> std::ptr_fun<int,int>(_Result (__fastcall *)(_Arg))'
2>          with
2>          [
2>              _Arg=int,
2>              _Result=int,
2>              _Fn=int (__fastcall *)(int)
2>          ]
2>          while trying to match the argument list '(overloaded-function)'
2>..\..\..\src\TGUI\Label.cpp(315): error C2780: '_OutTy *std::transform(_InIt1,_InIt1,_InTy (&)[_InSize],_OutTy (&)[_OutSize],_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1243) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Label.cpp(315): error C2780: '_OutTy *std::transform(_InIt1,_InIt1,_InIt2,_OutTy (&)[_OutSize],_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1229) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Label.cpp(315): error C2780: '_OutIt std::transform(_InIt1,_InIt1,_InTy (&)[_InSize],_OutIt,_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1217) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Label.cpp(315): error C2780: '_OutIt std::transform(_InIt1,_InIt1,_InIt2,_OutIt,_Fn2)' : expects 5 arguments - 4 provided
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1198) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Label.cpp(315): error C2784: '_OutTy *std::transform(_InIt,_InIt,_OutTy (&)[_OutSize],_Fn1)' : could not deduce template argument for '_OutTy (&)[_OutSize]' from 'std::_String_iterator<_Mystr>'
2>          with
2>          [
2>              _Mystr=std::_String_val<std::_Simple_types<char>>
2>          ]
2>          C:\Program Files\Microsoft Visual Studio 11.0\VC\include\algorithm(1075) : see declaration of 'std::transform'
2>..\..\..\src\TGUI\Label.cpp(341): error C2143: syntax error : missing ')' before '{'
2>..\..\..\src\TGUI\Label.cpp(341): error C2059: syntax error : ')'
2>..\..\..\src\TGUI\Label.cpp(341): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Label.cpp(342): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Label.cpp(342): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Label.cpp(343): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Label.cpp(343): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Label.cpp(343): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Label.cpp(344): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Label.cpp(344): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Label.cpp(344): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Label.cpp(345): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Label.cpp(345): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Label.cpp(345): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Label.cpp(346): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Label.cpp(346): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Label.cpp(346): error C2143: syntax error : missing ';' before ','
2>..\..\..\src\TGUI\Label.cpp(347): error C2143: syntax error : missing ';' before '{'
2>..\..\..\src\TGUI\Label.cpp(347): error C2143: syntax error : missing ';' before '}'
2>..\..\..\src\TGUI\Label.cpp(348): error C2059: syntax error : ')'
.
.
.
2>  Generating Code...
3>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
3>  Building Custom Rule C:/Program Files/Microsoft Visual Studio 11.0/TGUI/CMakeLists.txt
3>  CMake does not need to re-run because C:\Program Files\Microsoft Visual Studio 11.0\TGUI\build\CMakeFiles\generate.stamp is up-to-date.
3>  Build all projects
4>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
4>Project not selected to build for this solution configuration
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========


How do I fix it? Thank you.

texus

You must have downloaded it right before I fixed it. Try downloading the latest tgui version again, it should be fixed.