Well, in terms of a tutorial, I think it's worth knowing what LINKAGE is doing, but also there needs to be mention of the fact that there's two ways of doing opcode libraries: 1)Doing what LINKAGE does 2)Use csoundModuleInit Method 2 was introduced by Istvan after method 1and offers a more versatile method of building opcode libraries (i.e. you could have 32bit and 64bit functions in the same library). steven On 9/2/05, Iain Duncan wrote: > Thanks guys, it worked! The tech support around here is second to none. ; ) > > So, I guess adding the entry to SConstruct replaces the need to compile > the .so seperately as indicated in Victor's Paper? I guess the linkage > macro should get mentioned in there too. > > Iain > > Istvan Varga wrote: > > Just add LINKAGE at the end of the file: > > > > // stuff to register opcode > > static OENTRY localops[] = > > { "myop", sizeof(myop), 3, "k", "k", (SUBR)myop_init, > > (SUBR)myop_process_k, NULL }; > > > > LINKAGE > > > > Of course, there are more advanced things that can be done, but that > > should be enough to get started. > > > > Iain Duncan wrote: > > > >> Can you point me to an example of this? or show me what it should look > >> like? > >> > >> I suggest that info be added to Victor's paper too. = ) > >> > >> Iain > >> > >> Steven Yi wrote: > >> > >>> Hi Iain, > >>> It doesn't look like you have the code to actually register with > >>> Csound your opcodes in the library. The simple way to do that is to > >>> add the LINKAGE macro after the OENTRY localops[] line. (LINKAGE is > >>> defined in csdl.h) > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Csound-devel mailing list > > Csound-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/csound-devel > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net