<?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>topic Re: Preprocessor source? in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906755#M1933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turned up in a section of code, LWIP's sockets.h that is disabled by a #ifdef. So how is disabled code finding its way in?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80770iB82D64578E041EF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Whole sockets.h file should be turned off:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80771i956FC118F80FE8EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2019 12:39:53 GMT</pubDate>
    <dc:creator>mspenard603</dc:creator>
    <dc:date>2019-04-24T12:39:53Z</dc:date>
    <item>
      <title>Preprocessor source?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906750#M1928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this compiler error I'm trying to narrow down in Mongoose:&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #222222; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"error: macro “poll” requires 3 arguments, but only 2 given &lt;SPAN&gt;m-&amp;gt;ifaces[i]-&amp;gt;vtable-&amp;gt;poll(m-&amp;gt;ifaces[i], timeout_ms);&lt;/SPAN&gt;"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And vtable-&amp;gt;poll isn't a macro, So something must be overriding it(?)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;struct mg_iface_vtable {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;time_t (*poll)(struct mg_iface *iface, int timeout_ms);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to see the pre-processor source with all the macros expanded so I can see where it's taking the definition of "poll" from. Typically, you would add -E to the compiler options. But I've done that, and I'm not seeing anything useful outputted.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80676i0861AF7C196D9012/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80677i6682B98CCD35AF4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80678i9631E32A9AB21203/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled3.png" alt="Untitled3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does one setup MCUxpresso to&amp;nbsp;&lt;SPAN&gt;see the pre-processor source with all the macros expanded???&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 18:22:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906750#M1928</guid>
      <dc:creator>mspenard603</dc:creator>
      <dc:date>2019-04-23T18:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor source?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906751#M1929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike, I hope you're doing well,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested checking the "Preprocess Only (-E)" checkbox in my project settings and the output files are being generated correctly. Could you please look for those files inside your Debug folder?&lt;/P&gt;&lt;P&gt;You can find said folder here: workspace_folder\project_folder\Debug\source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 20:55:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906751#M1929</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2019-04-23T20:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor source?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906752#M1930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got them, I needed "-save-temps". So now that I have all my .i files I'm still confused...&lt;/P&gt;&lt;P&gt;It's specifying 2 arguments for poll() in the source:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;int mg_mgr_poll(struct mg_mgr *m, int timeout_ms) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; int i, num_calls_before = m-&amp;gt;num_calls;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;for (i = 0; i &amp;lt; m-&amp;gt;num_ifaces; i++) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m-&amp;gt;ifaces[i]-&amp;gt;vtable-&amp;gt;&lt;STRONG&gt;poll(m-&amp;gt;ifaces[i], timeout_ms);&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;return (m-&amp;gt;num_calls - num_calls_before);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my .i file it shows NO arguments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;int mg_mgr_poll(struct mg_mgr *m, int timeout_ms) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; int i, num_calls_before = m-&amp;gt;num_calls;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;for (i = 0; i &amp;lt; m-&amp;gt;num_ifaces; i++) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; m-&amp;gt;ifaces[i]-&amp;gt;vtable-&amp;gt;&lt;STRONG&gt;poll&lt;/STRONG&gt;;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;return (m-&amp;gt;num_calls - num_calls_before);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Why is MCUxpresso doing this? It says "macro" error. But how do I figure out where its mistakingly changing poll() ?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;error: &lt;STRONG&gt;macro “poll”&lt;/STRONG&gt; requires 3 arguments, but only 2 given&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;m-&amp;gt;ifaces[i]-&amp;gt;vtable-&amp;gt;&lt;STRONG&gt;poll(m-&amp;gt;ifaces[i], timeout_ms)&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 00:12:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906752#M1930</guid>
      <dc:creator>mspenard603</dc:creator>
      <dc:date>2019-04-24T00:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor source?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906753#M1931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obviously, the compiler is not going to "mistakenly" redefine a macro. There is obviously a definition of poll with 3 arguments in your source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first, most obvious, way is to search for it (there are good search options in the IDE). Failing that, you could always define a poll macro yourself, which will cause the compiler to issue a macro redefinition error and should give you the source location of both macros.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 07:44:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906753#M1931</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-04-24T07:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor source?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906754#M1932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obviously I used the word "mistakenly" to personify the compiler as a way to explain the issue. Obviously I used the search tool for the keyword "poll" and it didn't turn up a macro for it. And was looking for a helpful method that would "expose" where this "erroneous" "interaction" is taking place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 11:54:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906754#M1932</guid>
      <dc:creator>mspenard603</dc:creator>
      <dc:date>2019-04-24T11:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Preprocessor source?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906755#M1933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turned up in a section of code, LWIP's sockets.h that is disabled by a #ifdef. So how is disabled code finding its way in?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80770iB82D64578E041EF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Whole sockets.h file should be turned off:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80771i956FC118F80FE8EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled2.png" alt="Untitled2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 12:39:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Preprocessor-source/m-p/906755#M1933</guid>
      <dc:creator>mspenard603</dc:creator>
      <dc:date>2019-04-24T12:39:53Z</dc:date>
    </item>
  </channel>
</rss>

