<?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: including old header file in new source file causes errors? in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/including-old-header-file-in-new-source-file-causes-errors/m-p/533116#M3439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Wed Jun 19 00:50:47 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked what other include files the original example made use of? I suspect that there may be a dependency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other than that, what example and include file are you actually looking at? Giving us real information is much more likely to allow someone to provide you with a solution !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:38:31 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:38:31Z</dc:date>
    <item>
      <title>including old header file in new source file causes errors?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/including-old-header-file-in-new-source-file-causes-errors/m-p/533115#M3438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ECamino on Tue Jun 18 14:08:12 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Suppose I have file a.c and file b.c. Both files include "file.h" Everything builds fine. There is a prototype in file.h I want to use in a new file, c.c. So I add #include "file.h" in c.c When I build, all the sudden the compiler doesn't like file.h anymore, which is an example file supplied by NXP/Code Red!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The errors mainly look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;error: expected '=', ',', ';', 'asm' or '__attribute__' before (prototype for func xyz)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, sturctures are flagged with an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does this happen? I'm probably overlooking something simple, but then the other two files using the same header build fine? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, not an expert at this!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/including-old-header-file-in-new-source-file-causes-errors/m-p/533115#M3438</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: including old header file in new source file causes errors?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/including-old-header-file-in-new-source-file-causes-errors/m-p/533116#M3439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Wed Jun 19 00:50:47 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked what other include files the original example made use of? I suspect that there may be a dependency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other than that, what example and include file are you actually looking at? Giving us real information is much more likely to allow someone to provide you with a solution !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/including-old-header-file-in-new-source-file-causes-errors/m-p/533116#M3439</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: including old header file in new source file causes errors?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/including-old-header-file-in-new-source-file-causes-errors/m-p/533117#M3440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ECamino on Wed Jun 19 06:20:13 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The file is my slightly modified version of "mw_usbd.h" I call "usb_dev.h."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added to c.c #[COLOR=black]include mw_usbd_rom_api.h, and that fixed the error.&amp;nbsp; I don't really understand the problem with the build before I added the include.&amp;nbsp;&amp;nbsp; c.c at that time had only one function having a delay call and a call of a function which is a void f(void) type.[/COLOR]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/including-old-header-file-in-new-source-file-causes-errors/m-p/533117#M3440</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:31Z</dc:date>
    </item>
  </channel>
</rss>

