xtopsoft / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Error when compiling with Visual Studio 2012, 64 bits #437

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use gtest with Visual Studio 2012
2. Compile directly in your code gtest

What is the expected output? What do you see instead?
Compilation should succeed. Instead I see the error messages:

4>C:\Users\bogdan\Documents\C++\gtest\include\gtest/internal/gtest-param-util-ge
nerated.h(5059): error C2977: 'std::tuple' : too many template arguments
4>          C:\Program Files (x86)\Microsoft Visual Studio 
11.0\VC\include\utility(73) : see declaration of 'std::tuple'
4>          
C:\Users\bogdan\Documents\C++\gtest\include\gtest/internal/gtest-param-util-gene
rated.h(5087) : see reference to class template instantiation 
'testing::internal::CartesianProductHolder9<Generator1,Generator2,Generator3,Gen
erator4,Generator5,Generator6,Generator7,Generator8,Generator9>' being compiled
4>C:\Users\bogdan\Documents\C++\gtest\include\gtest/internal/gtest-param-util-ge
nerated.h(5059): error C3203: 'tuple' : unspecialized class template can't be 
used as a template argument for template parameter 'T', expected a real type
4>C:\Users\bogdan\Documents\C++\gtest\include\gtest/internal/gtest-param-util-ge
nerated.h(5059): error C2955: 'std::tuple' : use of class template requires 
template argument list
4>          C:\Program Files (x86)\Microsoft Visual Studio 
11.0\VC\include\utility(73) : see declaration of 'std::tuple'

What version of Google Test are you using? On what operating system?
gtest sources from trunk on Windows Server 2012

Please provide any additional information below, such as a code snippet.
I am using a cmake file with the following content:

file ( GLOB ITPP_TEST_SRCS *.cpp )

include_directories ( ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${GTEST_DIR} 
${GTEST_DIR}/include )

add_executable ( itpp_gtests ${ITPP_TEST_SRCS} ${GTEST_DIR}/src/gtest-all.cc 
${GTEST_DIR}/src/gtest_main.cc )

Original issue reported on code.google.com by cristeab on 6 Jul 2013 at 11:08

GoogleCodeExporter commented 9 years ago

Original comment by vladlosev on 19 Jul 2013 at 8:06