Page 1 of 1

Errors buldding VSTGUI 4.6 (xstring_insert.h, string)

Posted: Mon Aug 06, 2018 12:39 am
by yeahtuna
I'm building using Visual Studio Community 2017. Below is a list of some of the errors. Any ideas?

Code: Select all

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'

Re: Errors buldding VSTGUI 4.6 (xstring_insert.h, string)

Posted: Mon Aug 13, 2018 9:00 am
by Arne Scheffler
How do you build vstgui ? WIth cmake generated project ?

Re: Errors buldding VSTGUI 4.6 (xstring_insert.h, string)

Posted: Fri Aug 17, 2018 11:52 am
by yeahtuna
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

Re: Errors buldding VSTGUI 4.6 (xstring_insert.h, string)

Posted: Fri Aug 17, 2018 1:58 pm
by Arne Scheffler
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

Re: Errors buldding VSTGUI 4.6 (xstring_insert.h, string)

Posted: Sat Aug 18, 2018 2:29 am
by yeahtuna
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.

Re: Errors buldding VSTGUI 4.6 (xstring_insert.h, string)

Posted: Thu Aug 23, 2018 8:56 am
by Arne Scheffler
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