<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Re-build plugin for R20 - missing file &quot;delegate.h&quot;]]></title><description><![CDATA[<p dir="auto">Hi,<br />
when trying to recompile a plugin for R20 using the latest "cinema.framework" I get a "missing file" error (on Mac):</p>
<pre><code>/frameworks/cinema.framework/source/c4d_customgui/customgui_description.h:15:10: 'c4d_misc/datastructures/delegate.h' file not found
</code></pre>
<p dir="auto">This file is referenced from other R20 SDK's includes. Indeed, such a file does NOT exist at that location. The parent include looks like this:</p>
<pre><code>#ifdef USE_API_MAXON
#include "maxon/delegate.h"
#else
#include "c4d_misc/datastructures/delegate.h"
#endif
</code></pre>
<p dir="auto">I have not defined <code>USE_API_MAXON</code> in my build because I don't use the new maxon API. Defining it anyways gives me tons of syntax errors due to old R19 code.<br />
Any hints?</p>
]]></description><link>http://developers.maxon.net/forum//topic/11159/re-build-plugin-for-r20-missing-file-delegate-h</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 20:54:46 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/11159.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Nov 2018 16:43:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Re-build plugin for R20 - missing file &quot;delegate.h&quot; on Thu, 29 Nov 2018 10:44:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi Steve,</p>
<p dir="auto">having the <code>USE_MAXON_API</code> being defined - actually using <code>C4D=true</code> in projectdefinition.txt - is required in order to be sure that <em>all</em> the cinema.framework classes are properly compiled. Although there could be situations where some cinema.framework classes can work without that define,  we highly discourage this approach since you can end up in situations where the code compiles until you include that  specific class which indeed needs that define (which it's already happening in that case).</p>
<p dir="auto">If specifying <code>C4D=true</code> actually brings too much pain, please open a new thread and let's proactively discuss the issues your code is facing and let's get rid of them.</p>
<p dir="auto">Best, Riccardo</p>
]]></description><link>http://developers.maxon.net/forum//post/56517</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/56517</guid><dc:creator><![CDATA[r_gigante]]></dc:creator><pubDate>Thu, 29 Nov 2018 10:44:00 GMT</pubDate></item><item><title><![CDATA[Reply to Re-build plugin for R20 - missing file &quot;delegate.h&quot; on Wed, 28 Nov 2018 18:44:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/r_gigante">@<bdi>r_gigante</bdi></a> I wonder, is it REQUIRED to set <code>USE_API_MAXON</code> in my project when re-compiling old plugins for R20? It seems that, if not set, certain #includes from cinema.framework do not compile.</p>
]]></description><link>http://developers.maxon.net/forum//post/56508</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/56508</guid><dc:creator><![CDATA[steve_r]]></dc:creator><pubDate>Wed, 28 Nov 2018 18:44:29 GMT</pubDate></item><item><title><![CDATA[Reply to Re-build plugin for R20 - missing file &quot;delegate.h&quot; on Thu, 22 Nov 2018 11:22:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi steve_r,</p>
<p dir="auto">porting pre-R20 plugins to R20 definitively requires to review the code and  deliver the changes needed to make it nicely work with the new API structure and syntax.<br />
I warmly suggest to run through all of them and fix accordingly to what stated on the <a href="https://developers.maxon.net/docs/cpp/2023_2/page_maxonapi_dev_transition.html" target="_blank" rel="noopener noreferrer nofollow ugc">Plugin Migration</a> section of the Cinema API C++ documentation.</p>
<p dir="auto">Last but not least, consider that a few of the issue might be due to code-style strictness level: in such case you can consider to lower the code-style strictness (see <a href="https://developers.maxon.net/docs/cpp/2023_2/page_maxonapi_projecttool.html#page_maxonapi_projecttool_definition_stylecheck" target="_blank" rel="noopener noreferrer nofollow ugc">style-check</a>)  for an initial transition and concentrate on design issues.</p>
<p dir="auto">Best, Riccardo</p>
]]></description><link>http://developers.maxon.net/forum//post/56461</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/56461</guid><dc:creator><![CDATA[r_gigante]]></dc:creator><pubDate>Thu, 22 Nov 2018 11:22:08 GMT</pubDate></item><item><title><![CDATA[Reply to Re-build plugin for R20 - missing file &quot;delegate.h&quot; on Wed, 21 Nov 2018 16:49:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/r_gigante">@<bdi>r_gigante</bdi></a> No, the <code>C4D=true</code> was not set in the project file. Once I added it I noticed that it also enables <code>USE_API_MAXON</code>, and now I get tons of R19 syntax errors back! Seems there is no way around fixing those (which I was thinking in the first place <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>http://developers.maxon.net/forum//post/56453</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/56453</guid><dc:creator><![CDATA[steve_r]]></dc:creator><pubDate>Wed, 21 Nov 2018 16:49:06 GMT</pubDate></item><item><title><![CDATA[Reply to Re-build plugin for R20 - missing file &quot;delegate.h&quot; on Wed, 21 Nov 2018 15:16:20 GMT]]></title><description><![CDATA[<p dir="auto">Hi steve_r,</p>
<p dir="auto">it seems like you're attempting to create hybrid plugins mixing classic API with new API. Could you please check that <code>C4D=true</code> is actually used in your projectdefinition.txt as reported in the <a href="https://developers.maxon.net/docs/cpp/2023_2/page_maxonapi_projecttool.html" target="_blank" rel="noopener noreferrer nofollow ugc">Project Tool</a> section of the C++ API docs?</p>
<p dir="auto">Best, Riccardo</p>
]]></description><link>http://developers.maxon.net/forum//post/56449</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/56449</guid><dc:creator><![CDATA[r_gigante]]></dc:creator><pubDate>Wed, 21 Nov 2018 15:16:20 GMT</pubDate></item></channel></rss>