Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2017 build errors with 1.41 platform toolset #1362

Closed
vdweller84 opened this issue Jun 1, 2022 · 1 comment
Closed

Visual Studio 2017 build errors with 1.41 platform toolset #1362

vdweller84 opened this issue Jun 1, 2022 · 1 comment
Assignees
Milestone

Comments

@vdweller84
Copy link

vdweller84 commented Jun 1, 2022

Hi all,

Trying to build a bare-bones project in VS2017 including <sol/sol.hpp> and using 1.41 platform toolset produces a bunch of errors:

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2027	use of undefined type 'std::_Get_first_parameter<_Ty>'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	266	
Error	C2061	syntax error: identifier 'type'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	266	
Error	C2039	'type': is not a member of 'std::_Get_element_type<_Ty,void>'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	309	
Error	C2061	syntax error: identifier 'type'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	309	
Error	C2065	'element_type': undeclared identifier	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	316	
Error	C2923	'std::is_void_v': 'element_type' is not a valid template type argument for parameter '_Ty'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	316	
Error	C3245	'std::is_void_v': use of a variable template requires template argument list	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	316	
Error	C2065	'element_type': undeclared identifier	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	318	
Error	C2923	'std::add_lvalue_reference_t': 'element_type' is not a valid template type argument for parameter '_Ty'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	318	
Error	C2039	'element_type': is not a member of 'std::pointer_traits<sol::basic_protected_function<sol::reference,false,sol::reference>>'	SOL	c:\users\fagota\source\repos\sol\sol\assets\include\sol\unique_usertype_traits.hpp	110	
Error	C2061	syntax error: identifier 'element_type'	SOL	c:\users\fagota\source\repos\sol\sol\assets\include\sol\unique_usertype_traits.hpp	110	
Error	C2027	use of undefined type 'std::_Get_first_parameter<_Ty>'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	266	
Error	C2039	'type': is not a member of 'std::_Get_element_type<_Ty,void>'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	309	
Error	C2039	'element_type': is not a member of 'std::pointer_traits<sol::basic_reference<false>>'	SOL	c:\users\fagota\source\repos\sol\sol\assets\include\sol\unique_usertype_traits.hpp	110	
Error	C2027	use of undefined type 'std::_Get_first_parameter<_Ty>'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	266	
Error	C2039	'type': is not a member of 'std::_Get_element_type<_Ty,void>'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	309	
Error	C2039	'element_type': is not a member of 'std::pointer_traits<sol::error>'	SOL	c:\users\fagota\source\repos\sol\sol\assets\include\sol\unique_usertype_traits.hpp	110	
Error	C2027	use of undefined type 'std::_Get_first_parameter<_Ty>'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	266	
Error	C2039	'type': is not a member of 'std::_Get_element_type<_Ty,void>'	SOL	c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory0	309	
Error	C2039	'element_type': is not a member of 'std::pointer_traits<bool>'	SOL	c:\users\fagota\source\repos\sol\sol\assets\include\sol\unique_usertype_traits.hpp	110	

Toggling Conformance mode does nothing.
The same project builds fine under VS2019 using 1.42 platform toolset.

Is there any way I can get it to build under VS2017 with the 1.41 toolset?

EDIT: As usual, a last-second check after posting something... Including the single header seems to build just fine.

@ThePhD
Copy link
Owner

ThePhD commented Jun 25, 2022

Well, I'm glad it's okay. If things break again, let me know.

@ThePhD ThePhD self-assigned this Jun 25, 2022
@ThePhD ThePhD added this to the Helpdesk milestone Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants