<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NFC Tag type 4 and GCC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27998/nfc-tag-type-4-and-gcc</link><description>Hi all, I am porting my 100% working code from keil to use C++ and GCC and when I use the macro NFC_NDEF_MSG_DEF to initializate the NDEF message I receive the following message from the compiler: 
 &amp;gt; &amp;gt;NFC.cpp(50,2): note : in expansion of macro &amp;#39;NFC_NDEF_MSG_DEF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Dec 2017 15:14:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27998/nfc-tag-type-4-and-gcc" /><item><title>RE: NFC Tag type 4 and GCC</title><link>https://devzone.nordicsemi.com/thread/110417?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2017 15:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:010997ba-3a66-4cc6-b440-4014e429eafd</guid><dc:creator>MarcoTull</dc:creator><description>&lt;p&gt;Hi Jørgen, I solved my issue, now the NDEF message macro is working very well :) The issue was something with GCC and the struct values assignments it should be in the same order they are declared in the struct nfc_ndef_msg_desc_t. I hope it helps someone else&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Tag type 4 and GCC</title><link>https://devzone.nordicsemi.com/thread/110416?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2017 07:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f1e3e1c-e045-4216-aa1c-2207ef7ed2a0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I meant this error: &lt;em&gt;sorry, unimplemented: non-trivial designated initializers not supported&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Tag type 4 and GCC</title><link>https://devzone.nordicsemi.com/thread/110418?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 23:34:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7341a9e-f30d-40b1-9a61-cdb6b3bbfbb2</guid><dc:creator>MarcoTull</dc:creator><description>&lt;p&gt;Hi Jørgen, I found actually the error on the compiler log and it says &lt;code&gt;gcc.targets(83,5): error : Failed to compile NFC.cpp. GCC exited with code 1&lt;/code&gt; I tried google but is not very clear for me.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Tag type 4 and GCC</title><link>https://devzone.nordicsemi.com/thread/110415?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 14:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:466a3583-7420-4948-840a-82f72714675a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is not supported by C++, please google the error to read more about it. &lt;a href="https://devzone.nordicsemi.com/question/115982/sorry-unimplemented-non-trivial-designated-initializers-not-supported/?comment=116022#comment-116022"&gt;This commend&lt;/a&gt; give a suggestion on an alternative approach.&lt;/p&gt;
&lt;p&gt;Note that exept from the header guards, our SDK does not have support for C++.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Tag type 4 and GCC</title><link>https://devzone.nordicsemi.com/thread/110414?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 05:16:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0b65fa7-5374-4e7e-b356-a5a9c341c34f</guid><dc:creator>MarcoTull</dc:creator><description>&lt;p&gt;I am using SDK13 and nRF52&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>