namewr / googletest

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

Сompilation error with stlport #387

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. gtest 1.6 + MSVC 2010SP1 + STLPort 5.2.1
2. Build

Compiler out errors:

1>  Note: including file:      
X:\Project\EXTERNAL\libstlport\libstlport-5.2.1\stlport\utility
1>  Note: including file:       
X:\Project\EXTERNAL\libstlport\libstlport-5.2.1\stlport\stl/_prolog.h
1>  Note: including file:        
X:\Project\EXTERNAL\libstlport\libstlport-5.2.1\stlport\stl/_cprolog.h
1>  Note: including file:         
X:\Project\EXTERNAL\libstlport\libstlport-5.2.1\stlport\stl/config/_prolog.h
1>  Note: including file:          
X:\Project\EXTERNAL\libstlport\libstlport-5.2.1\stlport\stl/config/_warnings_off
.h
1>  Note: including file:       
X:\Project\EXTERNAL\libstlport\libstlport-5.2.1\stlport\stl/_epilog.h
1>  Note: including file:        
X:\Project\EXTERNAL\libstlport\libstlport-5.2.1\stlport\stl/config/_epilog.h
1>  Note: including file:        
X:\Project\EXTERNAL\libstlport\libstlport-5.2.1\stlport\stl/_config_compat_post.
h
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(130): 
error C2065: '_Lockit' : undeclared identifier
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(130): 
error C2146: syntax error : missing ';' before identifier '_Lock'
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(130): 
error C3861: '_Lock': identifier not found
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(144): 
error C2065: '_Lockit' : undeclared identifier
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(144): 
error C2146: syntax error : missing ';' before identifier '_Lock'
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(144): 
error C3861: '_Lock': identifier not found
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(198): 
error C2065: '_Lockit' : undeclared identifier
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(198): 
error C2146: syntax error : missing ';' before identifier '_Lock'
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(198): 
error C3861: '_Lock': identifier not found
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(211): 
error C2065: '_Lockit' : undeclared identifier
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(211): 
error C2146: syntax error : missing ';' before identifier '_Lock'
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(211): 
error C3861: '_Lock': identifier not found
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(237): 
error C2039: '_No' : is not a member of 'stlp_std::tr1'
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(237): 
error C2146: syntax error : missing ';' before identifier '_Has_unchecked_type'
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(237): 
error C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(237): 
error C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(240): 
error C2039: '_Yes' : is not a member of 'stlp_std::tr1'
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(240): 
error C2146: syntax error : missing ';' before identifier '_Has_unchecked_type'
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(240): 
error C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(241): 
error C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(241): 
error C2365: 'stlp_std::_Has_unchecked_type' : redefinition; previous 
definition was 'function'
1>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\xutility(237) : see declaration of 
'stlp_std::_Has_unchecked_type'
1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility(241): 
error C2143: syntax error : missing ';' before '<end Parse>'

Original issue reported on code.google.com by usc.ur...@gmail.com on 13 Oct 2011 at 2:07

GoogleCodeExporter commented 9 years ago
Unfortunately, we have access neither to MSVC 2010 nor to STLPort here and 
hence cannot do the fix. Can you post a patch fixing the issue? Please see 
http://code.google.com/p/googletest/wiki/DevGuide#Contributing_Code for more 
info on contributing.

Original comment by vladlosev on 13 Oct 2011 at 10:11

GoogleCodeExporter commented 9 years ago
Closed because of the lack of user response/not actionable on our part.

Original comment by vladlosev on 8 Nov 2011 at 4:54

GoogleCodeExporter commented 9 years ago
I added the following to my stdafx.h,

#define GTEST_USE_OWN_TR1_TUPLE 1

It compiles correctly now (for windows XP).

Original comment by jamesves...@gmail.com on 25 Nov 2011 at 9:38

GoogleCodeExporter commented 9 years ago
I add GTEST_USE_OWN_TR1_TUPLE to preprocessor define. It works, thanks.

Original comment by usc.ur...@gmail.com on 28 Nov 2011 at 11:45