Dear Community,
I have a very basic Csound C++ API program which I am trying to compile and link. I work on a Mac 12.6.3.
The program is:
#include <csound.hpp>
int main(int argc, const char** argv) {
Csound csound; // csound object
int error; // error code
// compile CSD and start the engine
error = csound.Compile(argc, argv);
while (!error)
{
error = csound.PerformKsmps();
}
return 0;
}
The command line that I use to compile and link is the following:
g++ ./main.cpp -DUSE_DOUBLE -o ./main -I/Library/Frameworks/CsoundLib64.framework/Versions/6.0/Headers -L/Library/Frameworks/CsoundLib64.framework -L/Library/Frameworks/CsoundLib64.framework/libs -L/Library/Frameworks -lCsoundLib64 -L/usr/lib -lcurl -lz -lsndfile
but I get the error:
"_vDSP_create_fftsetupD", referenced from:
_csoundRealFFT2Setup in libCsoundLib64.a(fftlib.c.o)
"_vDSP_destroy_fftsetupD", referenced from:
_setupDispose in libCsoundLib64.a(fftlib.c.o)
"_vDSP_fft_zripD", referenced from:
_csoundRealFFT2 in libCsoundLib64.a(fftlib.c.o)
_vDSP_DCT_execute in libCsoundLib64.a(fftlib.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am guessing that I am missing a library I have to link to.
What am I doing wrong?
Thank you very much in advance.