Re: [Csnd-dev] Building example CPOF plugin opcodes
vlz <[email protected]>
| Newsgroups | gmane.comp.audio.csound.devel |
|---|---|
| Message-ID | <[email protected]> |
yes, that example is for Csound 6. In Csound 7, that function disappears and instead if you want to use a deinit(), then it’s just a matter of implementing it (like init() in the class). I have yet to adjust these examples. > On 23 Jun 2024, at 11:25, Pierre Clisson <[email protected]> wrote: > > Hi! > > I'm trying to build the example CPOF plugin opcodes (develop branch) on MacOS using: > > gcc -O2 -dynamiclib -o opcodes.dylib opcodes.cpp -I/Users/mesca/Library/Frameworks/CsoundLib64.framework/Headers -std=c++11 -DUSE_DOUBLE > > Unfortunately, I have a bunch of unresolved symbols, including: > > opcodes.cpp:73:13: error: no member named 'plugin_deinit' in 'csnd::Csound' > csound->plugin_deinit(this); > ~~~~~~ ^ > opcodes.cpp:138:36: error: no member named 'sr' in 'csnd::Csound' > delay.allocate(csound, csound->sr() * inargs[1]); > > Also, using csound->init_error()/message()/... result in: > > ld: symbol(s) not found for architecture arm64 > > What am I missing? > >