<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MQTTClient.h vs stm32f7xx.h</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/48015/mqttclient-h-vs-stm32f7xx-h</link><description> Hi, 
 I am currently playing about with MQTT using the MDK-Packs::Paho_MQTT pack in MDK-ARM. However, when I try and include the stm32f7xx.h file in my MQTT thread I get an error: 
 Arm\Packs\Keil\STM32F7xx_DFP\2.13.0\Drivers\CMSIS\Device\ST\STM32F7xx</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: MQTTClient.h vs stm32f7xx.h</title><link>https://community.arm.com/thread/168566?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 11:17:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:941969f8-36a3-41c6-bccd-6621c89cd04f</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;fair point.&lt;/p&gt;
&lt;p&gt;but the resolution has been identified&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTClient.h vs stm32f7xx.h</title><link>https://community.arm.com/thread/168565?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 11:15:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e8cc15f8-898f-4486-a186-0ee8ff6a0c7b</guid><dc:creator>Alex Shenfield</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure it&amp;#39;s actually resolved though ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTClient.h vs stm32f7xx.h</title><link>https://community.arm.com/thread/168564?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 11:11:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:fe4bf751-57ed-4591-9d10-cfcd0df40605</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;You might also raise the issue to ST ...&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/471/5518._5F00_Verify_2D00_answer_2D00_nordic_5F00_2.png" /&gt;&lt;span class="mceItem mceNonEditable mceQuote"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;
&lt;blockquote class="quote"&gt;
&lt;div class="quote-user"&gt;Broeker said:&lt;/div&gt;
&lt;div class="quote-content"&gt;Changing just the headers would almost certainly not work, either, because these enum constants are going to appear all over the sources&lt;/div&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTClient.h vs stm32f7xx.h</title><link>https://community.arm.com/thread/168561?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 09:24:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a07266c5-0823-4f33-b4ce-cdfeb0601f90</guid><dc:creator>Alex Shenfield</dc:creator><description>&lt;p&gt;Thanks for the information. I&amp;#39;ve fiddled with the MQTTClient code to use names prefixes within that enum (as it was the easiest target and didn&amp;#39;t require huge amounts of modifications).&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTClient.h vs stm32f7xx.h</title><link>https://community.arm.com/thread/168560?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 09:22:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:79c09b48-bd4a-4191-a1db-9cd38fe96615</guid><dc:creator>Alex Shenfield</dc:creator><description>&lt;p&gt;For anyone else that runs into this same problem I have created a pull request for the eclipse-paho project here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/eclipse/paho.mqtt.embedded-c/pull/214"&gt;github.com/.../214&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;that addresses this specific problem (by changing the enum values to use name prefixes as per Broeker&amp;#39;s suggestion).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTTClient.h vs stm32f7xx.h</title><link>https://community.arm.com/thread/168549?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 23:26:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d08f6172-23b3-41a3-8e15-f1469c718ea4</guid><dc:creator>Broeker</dc:creator><description>&lt;p&gt;This is a quality-of-implementation issue of both packages you&amp;#39;re trying to combine. No experienced C programmer would ever define enum values like that, because doing so invites exactly the type of collision in the global namespace you&amp;#39;re experiencing here.&amp;nbsp; Properly designed components apply name prefixes to all such globally visible names to avoid this pitfall.&amp;nbsp; In C++ one would use namespaces instead --- which are effectively nothing but syntactic sugar that end up doing the very same thing behing the scenes.&lt;/p&gt;
&lt;p&gt;So yes, as-is these are impossible to use together.&amp;nbsp; Changing just the headers would almost certainly not work, either, because these enum constants are going to appear all over the sources of the two components, too.&amp;nbsp; This needs to be fixed by either or both suppliers, eventually.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>