Errors buldding VSTGUI 4.6 (xstring_insert.h, string)

I’m building using Visual Studio Community 2017. Below is a list of some of the errors. Any ideas?

1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xstring_insert.h(21): error C2988: unrecognizable template declaration/definition
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xstring_insert.h(21): error C2143: syntax error: missing ';' before '<'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xstring_insert.h(21): error C7525: inline variables require at least '/std:c++17'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xstring_insert.h(21): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xstring_insert.h(21): error C2059: syntax error: '<'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xstring_insert.h(24): error C2143: syntax error: missing ';' before '{'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\xstring_insert.h(24): error C2447: '{': missing function header (old-style formal list?)
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(20): error C2988: unrecognizable template declaration/definition
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(20): error C2143: syntax error: missing ';' before '<'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(20): error C7525: inline variables require at least '/std:c++17'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(20): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(20): error C2059: syntax error: '<'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(23): error C2143: syntax error: missing ';' before '{'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(23): error C2447: '{': missing function header (old-style formal list?)
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(71): error C2988: unrecognizable template declaration/definition
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(71): error C2143: syntax error: missing ';' before '<'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(71): error C7525: inline variables require at least '/std:c++17'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(71): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(71): error C2374: 'std::basic_istream': redefinition; multiple initialization
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.12.25827\include\string(20): note: see declaration of 'std::basic_istream'

How do you build vstgui ? WIth cmake generated project ?

Hi Arne,

Thanks for taking the time to respond. I’m building the way I’ve have for the past 8 years, since back in the VSTGUI 3.6 days. If you think back to the way the sample projects were compiled back in version 3.6, that’s the way I’m doing things.

Rob

Hi Rob,
you may have to build vstgui via cmake to see the difference in the way you are building it. Otherwise I’m not sure how I could help you with the information given.

Cheers,
Arne

Hi Arne,

Just to be clear, at this point I’m not even targeting Linux. I’m still on Windows tying to update my current projects to VSTGUI 4.6. Once I get that far, I’ll look at working with Linux.

I’m not sure why you think that I’m talking about Linux, maybe you think cmake is for Linux only, but cmake is the way to create visual studio/xcode projects to build vstgui.

Cheers,
Arne