Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

ll_2dslider fails to compile #1

Description

@burgersmoke

I did not try under another OS, but ll_2dslider fails to compile under Windows. Here is the code in question (in ll_2dslider.c):

void ll_2dslider_outlet_chars(t_ll_2dslider *x, t_symbol *s, char *array){
    t_atom buf[x->ll_amount];
    short i;
    for(i=0;i<x->ll_amount;i++) atom_setlong(&buf[i], array[i]);
    outlet_anything(x->ll_box.b_ob.o_outlet, s, x->ll_amount, buf);
}

Here are the compilation errors I get when compiling under Visual Studio 2019:

Severity    Code    Description    Project    File    Line    Suppression State
Error    C2057    expected constant expression    ll_2dslider    C:\git\ppooll_externals\ll_2dslider\ll_2dslider.c    862    
Error    C2466    cannot allocate an array of constant size 0    ll_2dslider    C:\git\ppooll_externals\ll_2dslider\ll_2dslider.c    862    
Error    C2133    'buf': unknown size    ll_2dslider    C:\git\ppooll_externals\ll_2dslider\ll_2dslider.c    862  

NOTE: I'm working now on fixing this code so that it can compile on Windows. I'll assign this to myself and push a fix assuming it works at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions