On 11/21/20, Boenn, Georg <georg.bo...@uleth.ca> wrote:
> Thanks James,
>
> I have now installed everything locally.
> When i run any of the faust2vst scripts i get this compile error from
> steinberg code:
>
> /usr/local/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffect.cpp:512:20:
> error: non-constant-expression cannot be narrowed from type 'int' to 'char'
> in initializer list [-Wc++11-narrowing]
>                         char temp[2] = {'0' + (char)digit, '\0'};
>                                         ^~~~~~~~~~~~~~~~~
> /usr/local/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffect.cpp:512:20:
> note: insert an explicit cast to silence this issue
>                         char temp[2] = {'0' + (char)digit, '\0'};
>                                         ^~~~~~~~~~~~~~~~~
>                                         static_cast<char>( )
> 1 error generated.
>
> Even if i change this line to:
> char temp[2] = {'0' + static_cast<char>(digit), '\0'};
>
> I still get the same error. Any ideas?
>
> Thanks
>
> G.

Hi Georg,

Interesting, thanks. That was with faust2vst? Did you try with
faust2faustvst as well? Can you paste the command you run?

If you want to attempt to tweak the source, it looks like the line the
compiler is suggesting there is:
char temp[2] = {static_cast<char>('0' + (char)digit), '\0'};

However, the fact that there's one error probably suggests that
something deeper isn't right, and there will most likely be more to
solve if you fix this one...

Cheers,
James


_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to