<?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[MAXON_MODULE_ID undeclared identifier [R20 C++ plugin]]]></title><description><![CDATA[<p dir="auto">This error appears since I've upgraded to R20 API:</p>
<p dir="auto">Some of my classes are including <em>apibase.h</em> but it refers to <em>MAXON_MODULE_ID</em> and it seems to be undeclared on my project?</p>
<p dir="auto">Any idea on this?</p>
<p dir="auto">Thank you in advance.</p>
]]></description><link>http://developers.maxon.net/forum//topic/10992/maxon_module_id-undeclared-identifier-r20-c-plugin</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 13:03:44 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/10992.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Sep 2018 11:37:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MAXON_MODULE_ID undeclared identifier [R20 C++ plugin] on Mon, 22 Oct 2018 14:18:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi Riccardo!</p>
<p dir="auto">Thank you very very much for your detailed explanation.<br />
That helped me a lot and YEAHHHH....got it working <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/270c.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--v" style="height:23px;width:auto;vertical-align:middle" title=":v:" alt="✌" /> <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/263a.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--relaxed" style="height:23px;width:auto;vertical-align:middle" title=":relaxed:" alt="☺" /></p>
<p dir="auto">Thanx in advance for your time!</p>
<p dir="auto">Best regards<br />
Andi</p>
]]></description><link>http://developers.maxon.net/forum//post/56122</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/56122</guid><dc:creator><![CDATA[Andi66]]></dc:creator><pubDate>Mon, 22 Oct 2018 14:18:01 GMT</pubDate></item><item><title><![CDATA[Reply to MAXON_MODULE_ID undeclared identifier [R20 C++ plugin] on Fri, 19 Oct 2018 12:21:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi Andi, first of all no need to apologize at all. My work IS to be interrupted and to be as much as possible helpful to our developers! <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>
<p dir="auto">In order to port/migrate/adapt code pre-R20 to R20, I kindly recommend to read the <a href="https://developers.maxon.net/docs/cpp/2023_2/page_maxonapi_dev_transition.html" target="_blank" rel="noopener noreferrer nofollow ugc"><strong>Plugin Migration</strong></a> section in our documentation where it's properly explained how make this transition happen.</p>
<blockquote>
<p dir="auto">Do I have to create this file manually in all plugins folders?</p>
</blockquote>
<p dir="auto">Yes, <em>projectdefinition.txt</em>  should be created for both the project and solutions. The SDK shipped with Cinema has a few projectdefinition.txt files which clearly show where and what to write in.</p>
<blockquote>
<p dir="auto">Do I have to run the project tool over these folders once the projectdefinition.txt file is there?</p>
</blockquote>
<p dir="auto">Yes, the <em>projecttool</em> should be run on the whole folder that contains the sdk where both frameworks and plugins are located.<br />
The projecttool is indeed responsible to create both VisualStudio and Xcode project/solution files, so running once you get your IDE-required files properly created.</p>
<blockquote>
<p dir="auto">But in our R 19 plugin folders these files are already existing. Would it be enough to put an additional projectdefinition.txt into these folders?</p>
</blockquote>
<p dir="auto">My suggestion is to use a completely different folder for your R20 plugins and to structure it as follow:</p>
<pre><code class="language-text">&lt;plugins folder&gt;
    |-&lt;project a&gt;
    |-&lt;project b&gt;
    |-&lt;project x&gt;
    |   |-project
    |   |   |- projectdefinition.txt
    |   |-source
    |       |-source_1.cpp
    |       |-source_2.cpp
    |       |-...
    |       |-source_n.cpp

</code></pre>
<p dir="auto">Then run the projecttool and you should be provided with all the needed files for VisualStudio.</p>
<p dir="auto">Let me know if something is still unclear or missing.</p>
<p dir="auto">Best, Riccardo</p>
]]></description><link>http://developers.maxon.net/forum//post/56072</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/56072</guid><dc:creator><![CDATA[r_gigante]]></dc:creator><pubDate>Fri, 19 Oct 2018 12:21:46 GMT</pubDate></item><item><title><![CDATA[Reply to MAXON_MODULE_ID undeclared identifier [R20 C++ plugin] on Wed, 17 Oct 2018 13:55:46 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></p>
<p dir="auto">Hi Riccardo,</p>
<p dir="auto">please excuse me me for interrupting your work.</p>
<p dir="auto">I am completely new to the sdk development for Cinamea 4D.<br />
In my company we use currently R 19 to develop plugins in C++<br />
My task is to port our R 19 plugins to R 20.<br />
As far as I could figure out there is a major change in the sdk with the introduction of R 20.</p>
<p dir="auto">The R 20 cinema.framework compiles ok after running the project tool over it.</p>
<p dir="auto">But now I have the same problem like viktor had:  MAXON_MODULE_ID : undeclared identifier.<br />
In a former post you mentioned to put this ID in the <em>projectdefinition.txt</em> file.<br />
Do I have to create this file manually in all plugins folders?<br />
Do I have to run the project tool over these folders once the <em>projectdefinition.txt</em> file is there?</p>
<p dir="auto">As far as I have understood the project tool creates the project files for Visual Studio.<br />
But in our R 19 plugin folders these files are already existing. Would it be enough to put an additional<br />
<em>projectdefinition.txt</em> into these folders?</p>
<p dir="auto">Thank you very much for your time!</p>
<p dir="auto">Best regards<br />
Andi</p>
]]></description><link>http://developers.maxon.net/forum//post/56057</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/56057</guid><dc:creator><![CDATA[Andi66]]></dc:creator><pubDate>Wed, 17 Oct 2018 13:55:46 GMT</pubDate></item><item><title><![CDATA[Reply to MAXON_MODULE_ID undeclared identifier [R20 C++ plugin] on Tue, 18 Sep 2018 12:57:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">just to make that clear: the Project Tool does <strong>not</strong> create <code>*.hxx</code> files.</p>
<p dir="auto"><code>*.hxx</code> files are created by the <a href="https://developers.maxon.net/docs/cpp/2023_2/page_maxonapi_sourceprocessor.html" target="_blank" rel="noopener noreferrer nofollow ugc">Source Processor</a> during the build process. So you have to build or re-build your plugin to create these <code>*.hxx</code> files.</p>
<p dir="auto">best wishes,<br />
Sebastian</p>
]]></description><link>http://developers.maxon.net/forum//post/55729</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55729</guid><dc:creator><![CDATA[s_bach]]></dc:creator><pubDate>Tue, 18 Sep 2018 12:57:49 GMT</pubDate></item><item><title><![CDATA[Reply to MAXON_MODULE_ID undeclared identifier [R20 C++ plugin] on Tue, 18 Sep 2018 12:17:45 GMT]]></title><description><![CDATA[<p dir="auto">It looks that project tool didn't generate the .hxx neither the .cxx file.</p>
]]></description><link>http://developers.maxon.net/forum//post/55728</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55728</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 18 Sep 2018 12:17:45 GMT</pubDate></item><item><title><![CDATA[Reply to MAXON_MODULE_ID undeclared identifier [R20 C++ plugin] on Tue, 18 Sep 2018 10:45:19 GMT]]></title><description><![CDATA[<p dir="auto">Thank you I re-generated my project but besides I've added all the .libs to the linker I'm still having some issues on linking all them are related to ModuleInfoWrapper:</p>
<p dir="auto"><em>error LNK2001: unresolved external symbol "public: static class maxon::ModuleInfo maxon::details::ModuleInfoWrapper&lt;-5597898574948983000&gt;::info"</em></p>
<p dir="auto">Any thought on this?<br />
Thank you in advance.</p>
]]></description><link>http://developers.maxon.net/forum//post/55727</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55727</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 18 Sep 2018 10:45:19 GMT</pubDate></item><item><title><![CDATA[Reply to MAXON_MODULE_ID undeclared identifier [R20 C++ plugin] on Thu, 13 Sep 2018 09:37:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor, thanks for writing here.</p>
<p dir="auto">With regard to your question, the <em>MAXON_MODULE_ID</em> is a pre-processor define and it's directly connected to the <em>ModuleId</em> that has to be set in the <em>projectdefinition.txt</em>. After doing this (I warmly invite to check the <a href="https://developers.maxon.net/docs/cpp/2023_2/page_maxonapi_projecttool.html#page_maxonapi_projecttool_definition_general" target="_blank" rel="noopener noreferrer nofollow ugc">Project Tool</a> page in the Cinema 4D documentation) remember to rebuild the project in order to enforce the changes brought in the <em>projectdefinition.txt</em>.<br />
Last but not least on <a href="https://github.com/PluginCafe/cinema4d_cpp_sdk_extended" target="_blank" rel="noopener noreferrer nofollow ugc">our Github repo</a> you can find a <a href="https://github.com/PluginCafe/cinema4d_cpp_sdk_extended/blob/master/plugins/microsdk/project/projectdefinition.txt" target="_blank" rel="noopener noreferrer nofollow ugc">reference</a> to the <em>projectdefinition.txt</em></p>
<p dir="auto">Best, Riccardo</p>
]]></description><link>http://developers.maxon.net/forum//post/55677</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/55677</guid><dc:creator><![CDATA[r_gigante]]></dc:creator><pubDate>Thu, 13 Sep 2018 09:37:42 GMT</pubDate></item></channel></rss>