<?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: MQX with MFS compile problem in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179470#M2584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;It seems to be importand the order libraries are compiled in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 01:37:14 GMT</pubDate>
    <dc:creator>javax</dc:creator>
    <dc:date>2010-09-22T01:37:14Z</dc:date>
    <item>
      <title>MQX with MFS compile problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179466#M2580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to integrate into MQX a quite complex 3rd party piece of code, this code requires me to use&amp;nbsp;MFS&amp;nbsp;for&amp;nbsp;the file system but also requires me to include the standard header &amp;lt;stdio.h&amp;gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding this header as shown below will cause a compile error even for the trivial example below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;stdio.h&amp;gt;  // Grrr this causes header clash#include "mqx.h"#include "fio.h"#include "mfs.h"void doSomething(void){}&lt;/PRE&gt;&lt;PRE&gt;
Error   : identifier 'FILE' redeclared
was declared as: 'struct _FILE'
now declared as: 'struct file_struct'
fio.h line 153   } FILE, _PTR_ FILE_PTR;
&lt;/PRE&gt;&lt;P&gt;To reduce the errors down to just this "FILE" variable clash I had to&amp;nbsp; declare the macro "MQX_SUPPRESS_STDIO_MACROS"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no idea how to fix this last error , can anyone suggest a tidy fix please ?&amp;nbsp; I tried kludging out the clashing item in "cstdio" but that didnt seem sensible and it triggered more compile faults&amp;nbsp; anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Geoff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:29:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179466#M2580</guid>
      <dc:creator>geoffW</dc:creator>
      <dc:date>2020-10-29T09:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: MQX with MFS compile problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179467#M2581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure whether this is intentional, but when using MQX I restrict myself to that, and will not touch the stdio.h. As far as my code goes, MQX's fio.h offers all I/O functions I need, so I don't need stdio.h. YMMV&lt;/P&gt;&lt;P&gt;The only problem I can see is if you're forgetting to include fio.h, then the compiler will silently (unless you enable the warning about missing prototypes, which in 7.1 is treated as an error, therefore unusable in our code...) link with the std-library, and effectively insert two versions of the function, probably different ones.&lt;/P&gt;&lt;P&gt;I didn't look at the latest version of MQX in this respect yet, though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FWIW,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2010 13:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179467#M2581</guid>
      <dc:creator>jbezem</dc:creator>
      <dc:date>2010-02-26T13:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: MQX with MFS compile problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179468#M2582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error compilation of mfs_sdcard_twrmcf51cn demo on CodeWarrior 10 Eclipse based&lt;BR /&gt;&lt;BR /&gt;HI everybody&lt;BR /&gt;I have successfully compiled&amp;nbsp; and debugged many of example available for TWMCF51CN128.&lt;BR /&gt;I have been working with CodeWarrior 10 but during compilation of demo " mfs_sdcard_twrmcf51cn" a got this problems:&lt;BR /&gt;Description&amp;nbsp;&amp;nbsp;&amp;nbsp; Resource&amp;nbsp;&amp;nbsp;&amp;nbsp; Path&amp;nbsp;&amp;nbsp;&amp;nbsp; Location&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&lt;BR /&gt;mfs_sdcard_twrmcf51cn&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Undefined : "Shell_cd"&amp;nbsp;&amp;nbsp;&amp;nbsp; mfs_sdcard_twrmcf51cn&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Undefined : "Shell_copy"&amp;nbsp;&amp;nbsp;&amp;nbsp; mfs_sdcard_twrmcf51cn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Undefined : "Shell_create"&amp;nbsp;&amp;nbsp;&amp;nbsp; mfs_sdcard_twrmcf51cn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Undefined : "Shell_del"&amp;nbsp;&amp;nbsp;&amp;nbsp; mfs_sdcard_twrmcf51cn&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Undefined : "Shell_dir"&amp;nbsp;&amp;nbsp;&amp;nbsp; mfs_sdcard_twrmcf51cn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Undefined : "Shell_get_current_filesystem" Referenced from "Shell_disect" in&amp;nbsp;&amp;nbsp;&amp;nbsp; mfs_sdcard_twrmcf51cn&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Undefined : "Shell_mkdir"&amp;nbsp;&amp;nbsp;&amp;nbsp; mfs_sdcard_twrmcf51cn &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I really apreciate any help.&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 06:02:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179468#M2582</guid>
      <dc:creator>javax</dc:creator>
      <dc:date>2010-09-16T06:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: MQX with MFS compile problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179469#M2583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rebuild shell library.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 21:23:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179469#M2583</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-09-20T21:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: MQX with MFS compile problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179470#M2584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;It seems to be importand the order libraries are compiled in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 01:37:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179470#M2584</guid>
      <dc:creator>javax</dc:creator>
      <dc:date>2010-09-22T01:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: MQX with MFS compile problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179471#M2585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about snprintf and similar functions.&amp;nbsp; They don't seem to be available through fio.h.&amp;nbsp; If we want to use them from stdio.h how do we prevent the clash with MQX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 07:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179471#M2585</guid>
      <dc:creator>solarhawk</dc:creator>
      <dc:date>2010-11-11T07:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: MQX with MFS compile problem</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179472#M2586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I moved stdio.h to the top of my include list and things started working better, seems to be a IAR and MQX include file mix up.&lt;/P&gt;&lt;P&gt;Move the most important includes to the top, "IAR" and things should clear up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 22:18:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-with-MFS-compile-problem/m-p/179472#M2586</guid>
      <dc:creator>oldone1</dc:creator>
      <dc:date>2011-05-23T22:18:01Z</dc:date>
    </item>
  </channel>
</rss>

