#include <flstk.h> #if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 401) #error You need at least flext version 0.4.1 #endif // Include here whatever particular STK declarations are needed #include "Clarinet.h" #include "PRCRev.h" #include "JCRev.h" #include "NRev.h" #include "Echo.h" #include "PitShift.h" #include "Chorus.h" #include "BiQuad.h" #include "Resonate.h"
The code above tells the C++ compiler what the definition of the flext classes and the STK classes are. When compiling clarinet.cpp, it will be crucial to specify where the STK header files, such as Clarinet.h are as well as where the compiled library exists. In the Makefile included with this lab, the header files are found in /usr/include/flext and /usr/include/stk/. The compiled libraries are found in /usr/lib/libflext-pd_s.a and /usr/lib/libstk.a. It is standard to have the header and library files in these locations, but you will weant to double-check to ensure that they are located in those paths.