<?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>MQX Software Solutionsのトピックadd file to MQX project issue</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/add-file-to-MQX-project-issue/m-p/159227#M1075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I created a empty MQX project, there are 2 files created - main.c and main.h. &lt;/P&gt;&lt;P&gt;I wrote a sample function(control GPIO) in main.c, it's OK for compile ,download and debug.&lt;/P&gt;&lt;P&gt;But when I try to move the function to another file(ex: IO.c, IO.h) to organize the code, there are thousand error occured.&lt;/P&gt;&lt;P&gt;(undefined identifier '_mqx_uint'&amp;nbsp; , identifier expected&amp;nbsp; , illegal function definition..........etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any setting should I do when I add other file to MQX project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the environment : CodeWorrior 10.2&amp;nbsp; &amp;amp;&amp;nbsp; MQX 3.8.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mini&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 07:19:04 GMT</pubDate>
    <dc:creator>miniwang</dc:creator>
    <dc:date>2012-10-31T07:19:04Z</dc:date>
    <item>
      <title>add file to MQX project issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/add-file-to-MQX-project-issue/m-p/159227#M1075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I created a empty MQX project, there are 2 files created - main.c and main.h. &lt;/P&gt;&lt;P&gt;I wrote a sample function(control GPIO) in main.c, it's OK for compile ,download and debug.&lt;/P&gt;&lt;P&gt;But when I try to move the function to another file(ex: IO.c, IO.h) to organize the code, there are thousand error occured.&lt;/P&gt;&lt;P&gt;(undefined identifier '_mqx_uint'&amp;nbsp; , identifier expected&amp;nbsp; , illegal function definition..........etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any setting should I do when I add other file to MQX project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the environment : CodeWorrior 10.2&amp;nbsp; &amp;amp;&amp;nbsp; MQX 3.8.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mini&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 07:19:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/add-file-to-MQX-project-issue/m-p/159227#M1075</guid>
      <dc:creator>miniwang</dc:creator>
      <dc:date>2012-10-31T07:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: add file to MQX project issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/add-file-to-MQX-project-issue/m-p/159228#M1076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in your .c file you should include at least mqx.h and bsp.h:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;mqx.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;bsp.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 07:23:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/add-file-to-MQX-project-issue/m-p/159228#M1076</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2012-10-31T07:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: add file to MQX project issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/add-file-to-MQX-project-issue/m-p/159229#M1077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin, thanks for your reply.&lt;/P&gt;&lt;P&gt;it's already include those header file in my .c file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 07:44:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/add-file-to-MQX-project-issue/m-p/159229#M1077</guid>
      <dc:creator>miniwang</dc:creator>
      <dc:date>2012-10-31T07:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: add file to MQX project issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/add-file-to-MQX-project-issue/m-p/159230#M1078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;_mqx_unit typedef is in the header file psptypes.h.&lt;/P&gt;&lt;P&gt;psptypes.h is inclucded into your project via bsp.h, which includes psp.h, which includes psptypes.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the compiler can't find the psp header files in your project.&lt;/P&gt;&lt;P&gt;So you should double check all your compiler include paths - it seems the psp header files are not included. Compiler settings are specific to a project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 08:00:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/add-file-to-MQX-project-issue/m-p/159230#M1078</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2012-10-31T08:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: add file to MQX project issue</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/add-file-to-MQX-project-issue/m-p/159231#M1079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, Martin.&lt;/P&gt;&lt;P&gt;This issued have be solved. &lt;/P&gt;&lt;P&gt;The solution is add #include "main.h" in IO.c file. mqx.h and bsp.h are included in main.h.&lt;/P&gt;&lt;P&gt;I'm curious that I've already include mqx.h and bsp.h in IO.c, why I still need to include main.h?&lt;/P&gt;&lt;P&gt;Anyway, thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 09:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/add-file-to-MQX-project-issue/m-p/159231#M1079</guid>
      <dc:creator>miniwang</dc:creator>
      <dc:date>2012-10-31T09:33:15Z</dc:date>
    </item>
  </channel>
</rss>

