<?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>LPCXpresso IDEのトピックLPCXpresso directories issues</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-directories-issues/m-p/542976#M8045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fjrg76 on Mon Nov 12 22:14:21 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already know this is a silly question, and although I've tried different approaches, I still have problems compiling source code (*.c) outside the /src directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Say I have this directory hierarchy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Courier New]/myProject&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /src&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; main.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /drivers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; spi.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; spi.h[/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and in the project settings I have this in "Includes":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"${workspace_loc:/${ProjName}/drivers}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"../drivers"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(it's redundant, but I did it to be shure it works)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The compiler is able to find the .h files; however, I got this error from the linker&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[I]\myWS\LPC1227_Board\Debug/../src/main.c:268: undefined reference to `spi_Init'[/I]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gets worst when the files are outside my project and belongs to another project, for example, when linking against the FreeRTOS example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to set the source's code path into the "Libraries" setting? It seems it's not enough with pats in "Includes".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:19:52 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:19:52Z</dc:date>
    <item>
      <title>LPCXpresso directories issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-directories-issues/m-p/542976#M8045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fjrg76 on Mon Nov 12 22:14:21 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already know this is a silly question, and although I've tried different approaches, I still have problems compiling source code (*.c) outside the /src directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Say I have this directory hierarchy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Courier New]/myProject&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /src&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; main.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /drivers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; spi.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; spi.h[/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and in the project settings I have this in "Includes":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"${workspace_loc:/${ProjName}/drivers}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"../drivers"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(it's redundant, but I did it to be shure it works)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The compiler is able to find the .h files; however, I got this error from the linker&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[I]\myWS\LPC1227_Board\Debug/../src/main.c:268: undefined reference to `spi_Init'[/I]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gets worst when the files are outside my project and belongs to another project, for example, when linking against the FreeRTOS example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to set the source's code path into the "Libraries" setting? It seems it's not enough with pats in "Includes".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:19:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-directories-issues/m-p/542976#M8045</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso directories issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-directories-issues/m-p/542977#M8046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Tue Nov 13 02:22:17 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Linker errors are nothing to do with include paths, or where your source is located. You need to provide the linker with the path to your library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Searching the Code Red support pages often helps...&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/LibraryProjects&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:19:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-directories-issues/m-p/542977#M8046</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso directories issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-directories-issues/m-p/542978#M8047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fjrg76 on Tue Nov 13 10:59:03 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, but is that necessary just for adding a source code inside the same project? I did it and it didn't work :D&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I read in the article that procedure is for creating a library and then share it among other projects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I made a little project for the FreeRTOS and a LPC1114 in a previous LPCXpresso release some months ago (the FreeRTOS directory is inside the project), then I added it to my actual workspace and it did compile. So, in a new project inside the same workspace I created the same files hierarchy than that of the LPC114 project, but for the LPC1227. I also added the paths as mentioned earlier in "Include settings" (and BTW, there is nothing related to FreeRTOS in "Library settings"), just the same as the LPC1114 project, but for a reason the linker throws the error that it cannot find the references to functions in FreeRTOS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I adapted the LPC1114 project for my LPC1227 (changing references from "LPC11xx.h" to "LPC122x.h" and paths, but keeping the directory structure) and it compiled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my LPC1227 project is up and running, but I would like to know what I missing so one project compiles and links, and the other one don't.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:19:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-directories-issues/m-p/542978#M8047</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso directories issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-directories-issues/m-p/542979#M8048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fjrg76 on Tue Nov 13 18:45:19 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I was missing one option inside Eclipse so that the linker finds the source code (.c files)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]Project (be shure you select the correct one) -&amp;gt; Properties -&amp;gt; C/C++ General -&amp;gt; Paths and symbols -&amp;gt; Source location tab -&amp;gt; Add folder -&amp;gt; Choose the folder where your source files reside -&amp;gt; Ok -&amp;gt; Project -&amp;gt; Clean -&amp;gt; Project -&amp;gt; Build[/B]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:19:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-directories-issues/m-p/542979#M8048</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:19:54Z</dc:date>
    </item>
  </channel>
</rss>

