david-c14 / SubmarineFree

Free plugins for VCV Rack
Other
48 stars 10 forks source link

LightButton compile for Rack 2.4.1 #203

Open jackokring opened 10 months ago

jackokring commented 10 months ago

Due to the SDK now having LightButton the following kind of thing occurs.

src/EO1.cpp:436:2: error: reference to ‘LightButton’ is ambiguous
  436 |  LightButton *paramRun;
      |  ^~~~~~~~~~~
In file included from ../../include/rack.hpp:36,
                 from src/SubmarineFree.hpp:1,
                 from src/EO1.cpp:5:
../../include/componentlibrary.hpp:890:8: note: candidates are: ‘template<class TBase, class TLight> struct rack::componentlibrary::LightButton’
  890 | struct LightButton : TBase {
      |        ^~~~~~~~~~~
In file included from src/SubmarineFree.hpp:122,
                 from src/EO1.cpp:5:
src/shared/components.hpp:96:8: note:                 ‘struct LightButton’
   96 | struct LightButton : app::Switch {
      |        ^~~~~~~~~~~

This results in a make error.