<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPC MicrocontrollersのトピックRe: Problem building C++ projects with SDK 2.6.0?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931868#M37132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NXP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still waiting for you to acknowledge this issue in your software.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2019 18:20:20 GMT</pubDate>
    <dc:creator>dmarks_ls</dc:creator>
    <dc:date>2019-07-09T18:20:20Z</dc:date>
    <item>
      <title>Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931862#M37126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;creating a standard C++ project with the wizard on 11.0 build with a lot of strange errors. With SDK 2.5.0 everything is fine. "My" SDK is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply choose new project, lpc845breakout board, the attached 2.6.0 SDK, empty board files, C++, newlibnano (semihost). Then try build it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 15:39:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931862#M37126</guid>
      <dc:creator>1234567890</dc:creator>
      <dc:date>2019-07-02T15:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931863#M37127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide some of the "strange errors"?&amp;nbsp; I'm building a C++ project on RT1050 with SDK 2.6.0 just fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 15:44:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931863#M37127</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2019-07-02T15:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931864#M37128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attachment. Unfortunately it overflows the buffer, so the beginning is overwritten.&lt;/P&gt;&lt;P&gt;I haven't checked other mcu with SDK 2.6.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 18:08:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931864#M37128</guid>
      <dc:creator>1234567890</dc:creator>
      <dc:date>2019-07-02T18:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931865#M37129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, this is definitely a bug, and I'm surprised that NXP QC allowed this to go out the door.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I encountered this exact same issue when I was upgrading my RT1050 project from MCUX 10.3.1 to MCUX v11.0.0.&amp;nbsp; MCUX 11 uses the new version of the GCC 8 compiler, and apparently the C++ compiler is more strict about&amp;nbsp;certain things that are generally OK in C code.&amp;nbsp; Specifically, it is no longer a fan of dereferencing a null pointer in order to manually determine the offset of a struct member.&amp;nbsp; Here are the offending macros in fsl_clock.h in your SDK:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* clock mux register definition */&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define CLK_MUX_DEFINE(reg, mux) (((((uint32_t)(&amp;amp;((SYSCON_Type *)0U)-&amp;gt;reg)) &amp;amp; 0xFFU) &amp;lt;&amp;lt; 8U) | ((mux)&amp;amp;0xFFU))&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/* clock divider register definition */&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define CLK_DIV_DEFINE(reg) (((uint32_t)(&amp;amp;((SYSCON_Type *)0U)-&amp;gt;reg)) &amp;amp; 0xFFFU)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of those macros pretends that there is a SYSCON_Type struct located at address 0, then references the "reg" (macro parameter) field of that struct, takes the address of that field, and then converts the address to a uint32_t.&amp;nbsp; Apparently this played nice in GCC 7 with C++ code, but GCC 8 flags this as an error (and correctly so):&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;../drivers/fsl_clock.h:173:64: note: in definition of macro 'CLK_DIV_DEFINE'
../drivers/fsl_clock.h:173:78: error: dereferencing a null pointer in '*0'&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And since the value is borked, it then flags each and every enumeration value below, because now that value isn't a proper constant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I encountered this issue with my RT1050 project and MCUX 11, I was still using SDK 2.5.1.&amp;nbsp; So I upgraded my SDK, and magically the issue went away... because NXP redefined those macros.&amp;nbsp; Here's the "before":&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define CCM_TUPLE(reg, shift, mask, busyShift)                               \
    (int)((((uint32_t)(&amp;amp;((CCM_Type *)0U)-&amp;gt;reg)) &amp;amp; 0xFFU) | ((shift) &amp;lt;&amp;lt; 8U) | \
          ((((mask) &amp;gt;&amp;gt; (shift)) &amp;amp; 0x1FFFU) &amp;lt;&amp;lt; 13U) | ((busyShift) &amp;lt;&amp;lt; 26U))&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define CCM_ANALOG_TUPLE(reg, shift) ((((uint32_t)(&amp;amp;((CCM_ANALOG_Type *)0U)-&amp;gt;reg) &amp;amp; 0xFFFU) &amp;lt;&amp;lt; 16U) | (shift))&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here's the "after":&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define CCM_TUPLE(reg, shift, mask, busyShift) \
    (int)((reg &amp;amp; 0xFFU) | ((shift) &amp;lt;&amp;lt; 8U) | \
    ((((mask) &amp;gt;&amp;gt; (shift)) &amp;amp; 0x1FFFU) &amp;lt;&amp;lt; 13U) | ((busyShift) &amp;lt;&amp;lt; 26U))&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define CCM_ANALOG_TUPLE(reg, shift) (((reg &amp;amp; 0xFFFU) &amp;lt;&amp;lt; 16U) | (shift))&lt;/SPAN&gt;
‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, they just got rid of the "offset of" operation altogether.&amp;nbsp; Now in the LPC845 code, I'm not sure if the same trick works.&amp;nbsp; But, there's really no need to explicitly do a null pointer dereference... there's a standard C construct for this, &lt;A href="https://en.wikipedia.org/wiki/Offsetof" rel="nofollow noopener noreferrer" target="_blank"&gt;offsetof()&lt;/A&gt; (located in stddef.h).&amp;nbsp; If you look in stddef.h, you'll see that it's not defined the way it is in the Wikipedia article, but rather to call the intrinsic function of the compiler:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* Offset of member MEMBER in a struct of type TYPE. */&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the two offending macros in fsl_clock.h with these:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define CLK_MUX_DEFINE(reg, mux) (((offsetof(SYSCON_Type, reg) &amp;amp; 0xFFU) &amp;lt;&amp;lt; 8U) | ((mux)&amp;amp;0xFFU))&lt;/SPAN&gt;

&lt;SPAN class="property macro token"&gt;#define CLK_DIV_DEFINE(reg) (offsetof(SYSCON_Type, reg) &amp;amp; 0xFFFU)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this, and a basic C++ project for the LPC845 (using your supplied SDK) builds fine.&amp;nbsp; Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP, you need to scrub all of your libraries for all of your supported parts, find every place where you explicitly dereference a null pointer to calculate the offset of a member, and use the "offsetof()" macro instead.&amp;nbsp; Otherwise, that code&amp;nbsp;&lt;SPAN style="text-decoration: underline;"&gt;will&lt;/SPAN&gt; generate a compiler error whenever it's used in C++ code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 19:00:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931865#M37129</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2019-07-02T19:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931866#M37130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks a lot for your detailed description and the solution. Your patch solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:16:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931866#M37130</guid>
      <dc:creator>1234567890</dc:creator>
      <dc:date>2019-07-03T15:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931867#M37131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad I could help.&amp;nbsp; NXP, please acknowledge the issue, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 22:35:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931867#M37131</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2019-07-03T22:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931868#M37132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NXP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still waiting for you to acknowledge this issue in your software.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 18:20:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931868#M37132</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2019-07-09T18:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931869#M37133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your feedback, we are checking this issue internally.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We will keep you informed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Soledad&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 15:04:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931869#M37133</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-07-10T15:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931870#M37134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soledad"&gt;soledad&lt;/A&gt;‌,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has this issue been corrected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 03:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/931870#M37134</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2020-02-14T03:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/1151734#M42188</link>
      <description>&lt;P&gt;I'm having this same issue using MCUexpresso 11.2.0 and SDK 2.8.0 for LPC812.&amp;nbsp; In my case the first patch for CLK_MUX_DEFINE fixed that problem, but with the patch for CLK_DIV_DEFINE I'm now getting a whole lot of errors like this:&lt;/P&gt;&lt;P&gt;../drivers/fsl_clock.h:244:27: note: in expansion of macro 'CLK_DIV_DEFINE'&lt;BR /&gt;244 | kCLOCK_IOCONCLKDiv0 = CLK_DIV_DEFINE(IOCONCLKDIV0),&lt;BR /&gt;| ^~~~~~~~~~~~~~&lt;BR /&gt;../drivers/fsl_clock.h:158:74: error: stray '\215' in program&lt;/P&gt;&lt;P&gt;Any ideas what the problem there is?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 18:41:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/1151734#M42188</guid>
      <dc:creator>mosesmcknight</dc:creator>
      <dc:date>2020-09-10T18:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/1151736#M42189</link>
      <description>&lt;P&gt;Ok, forget that, it seems there was a bad character or something in there from copy and pasting from the website.&amp;nbsp; I typed it out manually and recompiled and that fixes the problem.&amp;nbsp; Thanks for this post!&amp;nbsp; NXP should really test their SDK with C++...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 18:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/1151736#M42189</guid>
      <dc:creator>mosesmcknight</dc:creator>
      <dc:date>2020-09-10T18:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/1218071#M43660</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/109579"&gt;@1234567890&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/53251"&gt;@dmarks_ls&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks for your reports!&lt;/P&gt;
&lt;P&gt;Please take a look at the&amp;nbsp; LPC845 BRK SDK ver. 2.9.0.&amp;nbsp; We changed the following lines:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;#define CLK_MUX_DEFINE(reg, mux) (((offsetof(SYSCON_Type, reg) &amp;amp; 0xFFU) &amp;lt;&amp;lt; 8U) | ((mux)&amp;amp;0xFFU))

#define CLK_DIV_DEFINE(reg) (((uint32_t)offsetof(SYSCON_Type, reg)) &amp;amp; 0xFFFU)&lt;/LI-CODE&gt;
&lt;P&gt;Now a CPP project should build without problems.&lt;/P&gt;
&lt;P&gt;If somebody catches a problem in another SDK release, please let us know.&lt;/P&gt;
&lt;P&gt;Yours ,&lt;/P&gt;
&lt;P&gt;Diego&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 16:24:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/1218071#M43660</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-01-20T16:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/1218085#M43662</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/36383"&gt;@mosesmcknight&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please take a look at SDK 2.9 for LPC812. We added the changes to having a successful build after creating a CPP project.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks for your comments.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 16:43:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/1218085#M43662</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-01-20T16:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building C++ projects with SDK 2.6.0?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/1220002#M43718</link>
      <description>&lt;P&gt;Now the &lt;U&gt;&lt;STRONG&gt;(very, very&lt;/STRONG&gt;&lt;/U&gt; tiny) fix works as expected, and that only 2 years later...&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 09:01:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-building-C-projects-with-SDK-2-6-0/m-p/1220002#M43718</guid>
      <dc:creator>1234567890</dc:creator>
      <dc:date>2021-01-24T09:01:29Z</dc:date>
    </item>
  </channel>
</rss>

