<?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: Problem with multiple C-files in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problem-with-multiple-C-files/m-p/534523#M4141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jerre987 on Sun May 12 04:27:13 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It all makes sense to me now, I believed "static"befor a function had a similar meaning as with the declaration of a static variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;May the force be with you:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:20:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:20:50Z</dc:date>
    <item>
      <title>Problem with multiple C-files</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problem-with-multiple-C-files/m-p/534519#M4137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jerre987 on Sat May 11 12:23:47 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using an LPCXpresso Experiment Board rev PA3 from embedded artists with a LPC1114. I started with a standard project via the project wizard and I have been experimenting with some low level functions. This works fine when I put everything in main.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I've created HardwareConfig.c and HardwareConfig.h for all these low level functions. In main.c I call these functions to initialise the system. When I build the project I get the following errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Description Resource Path Location Type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make: *** [multiplecfilesTEST.axf] Error 1 multiplecfilesTEST&amp;nbsp;&amp;nbsp;&amp;nbsp; C/C++ Problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;undefined reference to `pll_start' main.c /multiplecfilesTEST/src line 64 C/C++ Problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;undefined reference to `system_init' main.c /multiplecfilesTEST/src line 65 C/C++ Problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;undefined reference to `Timer_16Bit_init' main.c /multiplecfilesTEST/src line 66 C/C++ Problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've searched the forum already but I 've not been able to fix this, so I hope &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;someone can help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have an additional question. Is it possible to use seperate folders for *.c &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the header files and how should these be configured to avoid more linker problems?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:20:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problem-with-multiple-C-files/m-p/534519#M4137</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple C-files</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problem-with-multiple-C-files/m-p/534520#M4138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat May 11 12:48:08 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Just create a new 'Source Folder' as discussed here: &lt;/SPAN&gt;&lt;A href="http://http://knowledgebase.nxp.com/showthread.php?p=24599#post24599"&gt;http://knowledgebase.nxp.com/showthread.php?p=24599&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without seeing your project it's difficult to guess what's wrong (there's also a simple Export function in LPCXpresso :)).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using a 'Source Folder' and adding this folder path to 'Include paths' of project properties is the simplest way to add source and header files to a project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:20:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problem-with-multiple-C-files/m-p/534520#M4138</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple C-files</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problem-with-multiple-C-files/m-p/534521#M4139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jerre987 on Sun May 12 01:25:37 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ok the header folder is working now,but I still have the other errors and some warnings.:confused:&amp;nbsp; I've attached my project (indeed very simple to export:)).So if you could explain these errors and warnings, this would help me a lot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:20:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problem-with-multiple-C-files/m-p/534521#M4139</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple C-files</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problem-with-multiple-C-files/m-p/534522#M4140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sun May 12 02:54:02 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Compiler is doing exactly what you have told him: handling your functions 'static' :) So just delete 'static' in declaration and definition of your HardwareConfig files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;[B] Static Functions in C [/B]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; By default all functions are implicitly declared as [B]extern[/B], which means they're visible across translation units. But when we use [B]static[/B] it restricts visibility of the function to the translation unit in which it's defined. So we can say[INDENT][COLOR=Red][I]Functions that are visible only to other functions in the same file are known as static functions.[/I][/COLOR][/INDENT]&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://codingfreak.blogspot.com/2010/06/static-functions-in-c.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:20:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problem-with-multiple-C-files/m-p/534522#M4140</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with multiple C-files</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problem-with-multiple-C-files/m-p/534523#M4141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jerre987 on Sun May 12 04:27:13 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It all makes sense to me now, I believed "static"befor a function had a similar meaning as with the declaration of a static variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;May the force be with you:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:20:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problem-with-multiple-C-files/m-p/534523#M4141</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:20:50Z</dc:date>
    </item>
  </channel>
</rss>

