Building AU with delay object fails
A simple delay creates the following error when building:
Must use ‘struct’ tag to refer to type ‘Delay’ in this scope
----------begin_max5_patcher---------- 940.3oc2X10aSCCEF95zeEQ9RTgDm905tZSLDWMoIgfalPStIml4sT6HamtN PvucbrSBwsMPFqBJSZJY8b7Gu9wGep64qC7PK3a.Ix+T+q88795.OOioRCdU e1CshrINiHMMCsBjRRJfFZ8ofMJicXSNWnh4IMtxIp3aorzaDPrxNE3om7lv g934QkulYdh0l7+bUeVxYJI8KPYywXsaqYZhYN3Kt60iPsZJirxzTzm.QBgQ p8wJVQYYfxH4nJi7Bk1j5wbvJFDpYZ0s250zAbowuMXP4ig8DKL3As51gJo. 66+ddDgmV9Zbn4CgOIdfOb7PRSYjLzvl+qC9D0dAAhJpTgEsPnYvZPHoblQ1 CqrSxyaY1qUWJY4cby.McXiIJyZB2XR.qo08eTiUhPiUkloEB6heyzwHqS89 2f5tVy7wmLyf4HSz2zPCzGOoE0060ow7L6rese3alOr0CraCy3w2ClsivZi7 bfQY4BPBLEQUI3F2IvRRQl5l8u255eIIF5rycra6gREzDNqTFN8szb8Dpi8r m9hZubLsfQx2Smk5URgbAQTtErHCZEHni247LWWM655iMDFcEQAJpUtQgMCJ cUtfxTNSDvH5w3VYrfmk4LTVOq2imDcfQL7.MQcqYrZCScyo40aBnFFkPSAo x0lhjJcs3jdrcDa67AN1+U4EbyM7JcnXXXXae6IEwnSFa2mLwoSltcJheQZh cRUfQa0mthf1ImAtkityi1UtTu57oUmIO7rLmHHq7u.xHO5elV29g5WjM939 Q2JFOa1ygtg+wzM7HmtIFtZhV8OSedED49LNC9MvMZhMES0W5O44P2Y+wvM5 HGt5f0ndBxQlWivOCNdxK1fT8L1WPVceqQyeFfb9AIWpKoBOpONO6vcZdxK4 Sy39wwCvgY7K5Cy8iiGhyxi+KcV9mWzNix55dklUZo+8SPIuPDWuSUkQ22cQ quyqhxZ9gGW27Mna0taoIIt2x2dwXY40rS5eBomphm0SEO+nQwS5ohGezn3x 6526vB7+WRdxwijC6oj2yZ6elleBT9PnX+OOncoXPRxZH4F8LnSjeCQoDzEE Jaxv1UQxVOwk7rDaElPehtoPdZvU.OOCBta88hfqD7xQQFbIYyGTEKWFbdd9 Ev5fTf8VdB7NyXDb9G0+8dfY+3qWGFEb4i5eqX.ZvO0ZU89LKX2zy1x+sMlq JB3N3cTar0UzfSa1Aq6hTGwsUczJExV0OaqZmsacy5plY544aC9ANhrldC -----------end_max5_patcher-----------
Try to rename "param Delay" to "param Delaytime". "Delay" conflicts with the internal object name in the .cpp code.
Thanks for the suggestion. But after renaming the issue persists. Actually, I came across this error using another gen patch where the parameter Delay doesn’t exist. It seems inherent in the Delay method. And sure, using the parameter Dalay isn’t really a good idea.
Found it. My suspicion that there is a naming conflict was right. "Delay" is used by Apple in CoreServices.framework/Frameworks/CarbonCore.framework/Headers/OSUtils.h. Found this after performing "Product->Perform Action->Preprocess "gen_exported.cpp"". After renaming "Delay" to e.g. "GENDelay" at all locatons the project builds, but: the product shows only up as a folder and auval and any audio app I tried don’t see it as plugin. Hm.
Thanks for getting to the bottom of this. Is my understanding correct that this must be addressed by Cycling?
Yes, I think so. Or maybe Cycling is ahead of our time since "Delay" is in the framework marked as "__OSX_AVAILABLE_BUT_DEPRECATED". This means in a future release of OSX it will be gone.
I was able to fix compilation by changing:
struct Delay m_delay_1;
For some reason, only the AU project exhibits this error.
That did the trick, thanks Wesley.
Forums > Gen