I tried to compile the listed 1.5 download, now I have tried the trunk and the same void* error is present.
VS10 has removed the facitily to add additional paths via VCCLCompilerTool, which are noted in the conversion log:
Conversion Report - gmock.vcproj:
Converting project file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock.vcproj'.
Done converting to new project file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock.vcxproj'.
This application has been updated to include settings related to the User Account Control (UAC) feature of Windows Vista. By default, when run on Windows Vista with UAC enabled, this application is marked to run with the same privileges as the process that launched it. This marking also disables the application from running with virtualization. You can change UAC related settings from the Property Pages of the project.
VCWebServiceProxyGeneratorTool is no longer supported. The tool has been removed from your project settings.
Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.
Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.
Conversion Report - gmock_config.vsprops:
Converting propertysheet file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock_config.vsprops' for configuration 'Debug|Win32'.
Done converting to new property sheet file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock_config.vsprops' for configuration 'Debug|Win32'.
Converting propertysheet file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock_config.vsprops' for configuration 'Release|Win32'.
Done converting to new property sheet file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock_config.vsprops' for configuration 'Release|Win32'.
Attribute 'ProjectType' of 'gmock_config' is not supported in this version and has been removed during conversion.
Attribute 'Version' of 'gmock_config' is not supported in this version and has been removed during conversion.
Conversion Report - gmock_link_test.vcproj:
Converting project file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock_link_test.vcproj'.
Web deployment to the local IIS server is no longer supported. The Web Deployment build tool has been removed from your project settings.
Done converting to new project file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock_link_test.vcxproj'.
This application has been updated to include settings related to the User Account Control (UAC) feature of Windows Vista. By default, when run on Windows Vista with UAC enabled, this application is marked to run with the same privileges as the process that launched it. This marking also disables the application from running with virtualization. You can change UAC related settings from the Property Pages of the project.
VCWebServiceProxyGeneratorTool is no longer supported. The tool has been removed from your project settings.
Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.
Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.
Attribute 'CopyLocalDependencies' of 'ProjectReference' is not supported in this version and has been removed during conversion.
Attribute 'UseDependenciesInBuild' of 'ProjectReference' is not supported in this version and has been removed during conversion.
Conversion Report - gmock_main.vcproj:
Converting project file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock_main.vcproj'.
Done converting to new project file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock_main.vcxproj'.
This application has been updated to include settings related to the User Account Control (UAC) feature of Windows Vista. By default, when run on Windows Vista with UAC enabled, this application is marked to run with the same privileges as the process that launched it. This marking also disables the application from running with virtualization. You can change UAC related settings from the Property Pages of the project.
VCWebServiceProxyGeneratorTool is no longer supported. The tool has been removed from your project settings.
Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.
Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.
Attribute 'CopyLocalDependencies' of 'ProjectReference' is not supported in this version and has been removed during conversion.
Attribute 'UseDependenciesInBuild' of 'ProjectReference' is not supported in this version and has been removed during conversion.
Conversion Report - gmock_test.vcproj:
Converting project file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock_test.vcproj'.
Web deployment to the local IIS server is no longer supported. The Web Deployment build tool has been removed from your project settings.
Done converting to new project file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock_test.vcxproj'.
This application has been updated to include settings related to the User Account Control (UAC) feature of Windows Vista. By default, when run on Windows Vista with UAC enabled, this application is marked to run with the same privileges as the process that launched it. This marking also disables the application from running with virtualization. You can change UAC related settings from the Property Pages of the project.
VCWebServiceProxyGeneratorTool is no longer supported. The tool has been removed from your project settings.
Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.
Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.
Attribute 'CopyLocalDependencies' of 'ProjectReference' is not supported in this version and has been removed during conversion.
Attribute 'UseDependenciesInBuild' of 'ProjectReference' is not supported in this version and has been removed during conversion.
Conversion Report - gmock-spec-builders_test.vcproj:
Converting project file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock-spec-builders_test.vcproj'.
Web deployment to the local IIS server is no longer supported. The Web Deployment build tool has been removed from your project settings.
Done converting to new project file 'C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\gmock-spec-builders_test.vcxproj'.
This application has been updated to include settings related to the User Account Control (UAC) feature of Windows Vista. By default, when run on Windows Vista with UAC enabled, this application is marked to run with the same privileges as the process that launched it. This marking also disables the application from running with virtualization. You can change UAC related settings from the Property Pages of the project.
VCWebServiceProxyGeneratorTool is no longer supported. The tool has been removed from your project settings.
Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.
Attribute 'Detect64BitPortabilityProblems' of 'VCCLCompilerTool' is not supported in this version and has been removed during conversion.
Attribute 'CopyLocalDependencies' of 'ProjectReference' is not supported in this version and has been removed during conversion.
Attribute 'UseDependenciesInBuild' of 'ProjectReference' is not supported in this version and has been removed during conversion.
-------------------------
Adding the gtest include directory and the define as in
"Microsoft.cpp.<Platform>.users" as listed here: http://blogs.msdn.com/vcblog/archive/2010/03/02/visual-studio-2010-c-project-upgrade-guide.aspx
Aslo adding the static_cast<void*> to the previous mentioned line generates no link errors yet conversion errors.
Error 1 error C2664: '`anonymous-namespace'::Helper' : cannot convert parameter 1 from 'const `anonymous-namespace'::Result *' to '`anonymous-namespace'::MockC *' c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h 214
Error 2 error C2866: 'testing::internal::ImplicitlyConvertible<From,To>::value' : a const static data member of a managed type must be initialized at the point of declaration c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h 214
Error 3 error C2664: '`anonymous-namespace'::Helper' : cannot convert parameter 1 from 'const `anonymous-namespace'::Result *' to '`anonymous-namespace'::MockC *' c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h 214
Error 4 error C2866: 'testing::internal::ImplicitlyConvertible<From,To>::value' : a const static data member of a managed type must be initialized at the point of declaration c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h 214
Error 5 error C2975: 'bool_value' : invalid template argument for 'testing::internal::bool_constant', expected compile-time constant expression c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h 395
-----------------
And the full listing:
1>------ Build started: Project: gmock, Configuration: Debug Win32 ------
1> gmock.vcxproj -> C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\Debug\gmock.lib
2>------ Build started: Project: gmock_main, Configuration: Debug Win32 ------
3>------ Build started: Project: gmock-spec-builders_test, Configuration: Debug Win32 ------
3> gmock-spec-builders_test.cc
2> gmock_main.vcxproj -> C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\Debug\gmock_main.lib
4>------ Build started: Project: gmock_link_test, Configuration: Debug Win32 ------
3>c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h(214): error C2664: '`anonymous-namespace'::Helper' : cannot convert parameter 1 from 'const `anonymous-namespace'::Result *' to '`anonymous-namespace'::MockC *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h(394) : see reference to class template instantiation 'testing::internal::ImplicitlyConvertible<From,To>' being compiled
3> with
3> [
3> From=const `anonymous-namespace'::Result *,
3> To=const ProtocolMessage *
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\gmock-printers.h(178) : see reference to class template instantiation 'testing::internal::IsAProtocolMessage<T>' being compiled
3> with
3> [
3> T=`anonymous-namespace'::Result
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\gmock-printers.h(220) : see reference to function template instantiation 'std::basic_ostream<_Elem,_Traits> &testing::internal2::operator <<<char,std::char_traits<char>,T>(std::basic_ostream<_Elem,_Traits> &,const T &)' being compiled
3> with
3> [
3> _Elem=char,
3> _Traits=std::char_traits<char>,
3> T=`anonymous-namespace'::Result
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\gmock-printers.h(299) : see reference to function template instantiation 'void testing_internal::DefaultPrintNonContainerTo<T>(const T &,std::ostream *)' being compiled
3> with
3> [
3> T=`anonymous-namespace'::Result
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\gmock-printers.h(337) : see reference to function template instantiation 'void testing::internal::DefaultPrintTo<T>(testing::internal::IsNotContainer,testing::internal::false_type,const T &,std::ostream *)' being compiled
3> with
3> [
3> T=`anonymous-namespace'::Result
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\gmock-printers.h(547) : see reference to function template instantiation 'void testing::internal::PrintTo<T>(const T &,std::ostream *)' being compiled
3> with
3> [
3> T=`anonymous-namespace'::Result
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\gmock-printers.h(538) : while compiling class template member function 'void testing::internal::UniversalPrinter<T>::Print(const T &,std::ostream *)'
3> with
3> [
3> T=`anonymous-namespace'::Result
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\gmock-spec-builders.h(1272) : see reference to class template instantiation 'testing::internal::UniversalPrinter<T>' being compiled
3> with
3> [
3> T=`anonymous-namespace'::Result
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\gmock-spec-builders.h(1270) : while compiling class template member function 'void testing::internal::ActionResultHolder<T>::PrintAsActionResult(std::ostream *) const'
3> with
3> [
3> T=`anonymous-namespace'::Result
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\gmock-spec-builders.h(1746) : see reference to class template instantiation 'testing::internal::ActionResultHolder<T>' being compiled
3> with
3> [
3> T=`anonymous-namespace'::Result
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\gmock-spec-builders.h(1708) : while compiling class template member function '`anonymous-namespace'::Result testing::internal::FunctionMockerBase<F>::InvokeWith(const std::tr1::tuple<_Arg0> &)'
3> with
3> [
3> F=`anonymous-namespace'::Result (int),
3> _Arg0=int
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\gmock-generated-function-mockers.h(80) : see reference to class template instantiation 'testing::internal::FunctionMockerBase<F>' being compiled
3> with
3> [
3> F=`anonymous-namespace'::Result (int)
3> ]
3> c:\documents and settings\dmail\my documents\projects\gmock150\test\gmock-spec-builders_test.cc(111) : see reference to class template instantiation 'testing::internal::FunctionMocker<Function>' being compiled
3> with
3> [
3> Function=`anonymous-namespace'::Result (int)
3> ]
3>c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h(214): error C2866: 'testing::internal::ImplicitlyConvertible<From,To>::value' : a const static data member of a managed type must be initialized at the point of declaration
3> with
3> [
3> From=const `anonymous-namespace'::Result *,
3> To=const ProtocolMessage *
3> ]
3>c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h(214): error C2664: '`anonymous-namespace'::Helper' : cannot convert parameter 1 from 'const `anonymous-namespace'::Result *' to '`anonymous-namespace'::MockC *'
3> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3> c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h(395) : see reference to class template instantiation 'testing::internal::ImplicitlyConvertible<From,To>' being compiled
3> with
3> [
3> From=const `anonymous-namespace'::Result *,
3> To=const proto2::Message *
3> ]
3>c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h(214): error C2866: 'testing::internal::ImplicitlyConvertible<From,To>::value' : a const static data member of a managed type must be initialized at the point of declaration
3> with
3> [
3> From=const `anonymous-namespace'::Result *,
3> To=const proto2::Message *
3> ]
3>c:\documents and settings\dmail\my documents\projects\gmock150\include\gmock\internal\gmock-internal-utils.h(395): error C2975: 'bool_value' : invalid template argument for 'testing::internal::bool_constant', expected compile-time constant expression
3> c:\documents and settings\dmail\my documents\projects\gmock150\gtest\include\gtest\internal\gtest-port.h(1236) : see declaration of 'bool_value'
5>------ Build started: Project: gmock_test, Configuration: Debug Win32 ------
4> gmock_link_test.vcxproj -> C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\Debug\gmock_link_test.exe
5> gmock_test.vcxproj -> C:\Documents and Settings\dmail\My Documents\projects\gmock150\msvc\Debug\gmock_test.exe
========== Build: 4 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Liam