cclark2a / SchmickleWorks

VCV Rack Modules
The Unlicense
14 stars 0 forks source link

almost there #4

Closed davephillips closed 5 years ago

davephillips commented 5 years ago

Fedora 23 Linux Rack 0.6.2c GCC 5.3.1

Almost made it through the build but stalled here:

$ make dist
g++  -Wsuggest-override -std=c++11  -DSLUG=SchmickleWorks-NoteTaker -fPIC -I../../include -I../../dep/include -DVERSION=0.6.0 -MMD -MP -g -O3 -march=athlon-fx -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_LIN -c -o build/src/NoteTaker.cpp.o src/NoteTaker.cpp
src/NoteTaker.cpp: In member function ‘void NoteTaker::setSelectStartAt(int, unsigned int, unsigned int)’:
src/NoteTaker.cpp:169:17: error: ‘INT_MAX’ was not declared in this scope
     int start = INT_MAX;
                 ^
src/NoteTaker.cpp: In member function ‘void NoteTaker::setWheelRange()’:
src/NoteTaker.cpp:210:26: error: ‘INT_MAX’ was not declared in this scope
         setSelectStartAt(INT_MAX, 0, allNotes.size());
                          ^
src/NoteTaker.cpp: In member function ‘virtual void NoteTaker::step()’:
src/NoteTaker.cpp:285:41: error: ‘INT_MAX’ was not declared in this scope
             static unsigned debugLast = INT_MAX;
                                         ^
src/NoteTaker.cpp:298:38: error: ‘INT_MAX’ was not declared in this scope
             this->setExpiredGatesLow(INT_MAX);
                                      ^
../../compile.mk:64: recipe for target 'build/src/NoteTaker.cpp.o' failed
make: *** [build/src/NoteTaker.cpp.o] Error 1
davephillips commented 5 years ago

Adding

#include <limits.h>

allows the plugin to compile.

cclark2a commented 5 years ago

Thanks. I had not tried compiling for Linux. I'll add limits.h as you suggest.

cclark2a commented 5 years ago

fixed