I have a possible solution (but it adds a for-loop) that avoids `lgbuild' of the output arg before `set_xincod'. I get only 1 fail because the csd file contains gamsigr = aw4 + gamsigr where gamsigr is undefined. Here is the patch diff -ur csound5~/Engine/csound_orc_compile.c csound5/Engine/csound_orc_compile.c --- csound5~/Engine/csound_orc_compile.c 2012-05-07 17:09:51.000000000 +0200 +++ csound5/Engine/csound_orc_compile.c 2012-05-07 17:15:43.000000000 +0200 @@ -489,9 +489,9 @@ } /* VL 14/12/11 : calling lgbuild here seems to be problematic for undef arg checks */ - /* else { */ - /* lgbuild(csound, arg, 1); */ - /* } */ + else { + lgbuild(csound, arg, 1); + } } @@ -510,15 +510,16 @@ // csound->Message(csound, "Opcode InTypes: %s\n", ep->intypes); // csound->Message(csound, "Opcode OutTypes: %s\n", ep->outypes); + for (outargs = root->left; outargs != NULL; outargs = outargs->next) { + arg = outargs->value->lexeme; + tp->outlist->arg[argcount++] = strsav_string(csound, arg); + } set_xincod(csound, tp, ep, root->line); /* OUTARGS */ for (outargs = root->left; outargs != NULL; outargs = outargs->next) { arg = outargs->value->lexeme; - tp->outlist->arg[argcount++] = - strsav_string(csound, arg); - if ((n = pnum(arg)) >= 0) { if (n > ip->pmax) ip->pmax = n; } ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net