<?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のトピックRe: Include Directories</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553649#M12866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Sat Jul 24 00:54:50 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The correct answer to all these question should be RTFM (Read The Fancy Manual) but I found this a challenging task :eek:. We've got all these tools glued together; Eclipse, a build manager, a debugger, the GCC compiler/linker and who knows what else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do you look for the proper documentation ???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What rtos want is in fact to create a static library with the drivers and add this library to his application. There are a few easy steps how to do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[LIST=1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]Create a static library with the drivers (use the "Create C static library project" from the "Project and File wizards") and add your C driver files to this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is the easiest way to start your driver library&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]Add the include directory of the driver (project) to your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this makes the .h files visible during compilation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]Add the library to your application (you need to specify both the path to the library and the library name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This tells the linker to add the library to the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/LIST]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: I added a .pdf document giving some more instructions for step 2 and 3. Unfortunately it is not allowed to add decent sized pdfs so I had to zip it ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:10:55 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:10:55Z</dc:date>
    <item>
      <title>Include Directories</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553640#M12857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rtos on Sun Jun 27 12:23:05 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In LPCXpresso IDE how do you tell a project to look for .h and .c files in a certain specific directory?&amp;nbsp; I want to put all of my driver .h and .c files in a directory called "drivers".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:10:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553640#M12857</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Include Directories</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553641#M12858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by KaraMuraT on Sun Jun 27 12:40:36 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I opened the forum to ask very similar question. In fact mine is simpler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I add the LPC13xx_lib to a project? It's already open in the workspace, already referenced in the project properties, but if I compile my simple project, I get "no such file or directory" error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm trying to do is, generate a Hello World program and include "gpio.h" from the LPC13xx_lib project to make the LED blink.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(@rtos, I hope my question does not interfere with yours. I thought that they are just the same.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553641#M12858</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Include Directories</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553642#M12859</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 Sun Jun 27 13:09:54 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: KaraMuraT&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;How can I add the LPC13xx_lib to a project? It's already open in the workspace, already referenced in the project properties, but if I compile my simple project, I get "no such file or directory" error. &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Details of how to add references to library projects can be found in knowledgebase entry [I]Using library projects from your own projects[/I] at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://lpcxpresso.code-red-tech.com/LPCXpresso/node/22&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;[login required]&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>Wed, 15 Jun 2016 22:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553642#M12859</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Include Directories</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553643#M12860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by KaraMuraT on Sun Jun 27 13:56:28 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, it helped a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've read mentioned pages several times, but looks like without an actual project, it feels just like a bed time story :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:10:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553643#M12860</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Include Directories</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553644#M12861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rtos on Sun Jun 27 14:23:31 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks but my question that started this thread was not related to Library Projects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to setup a folder inside my project folder that contains a bunch of .c and .h files.&amp;nbsp; How do I tell the IDE/Compiler/Linker to look inside that folder if it cant find the files in the project root folder?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:10:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553644#M12861</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Include Directories</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553645#M12862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by KaraMuraT on Sun Jun 27 14:39:33 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What I've understood from the reference page, same thing is applied to your question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example you have "/drivers" directory in your project. You'll include this directory from the "Project/Properties/C/C++ Build/Tool Settings/Directories" just like mentioned in the given page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You just don't have to add any libraries (explained in the second part of the page), since the files are already in your project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This can be seen also from some of the examples, like USBCDC. "/inc" directory has been added to "includes".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:10:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553645#M12862</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Include Directories</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553646#M12863</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 Sun Jun 27 14:40:41 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It will look for include files on the include path of the compiler, as mentioned above (it makes no difference if the include files are in another project, or another folder - you still need to tell the compiler where to find them&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can make a folder a Source folder to make the build system find your source files. If you already have a folder, File-&amp;gt;New-&amp;gt;Source folder and give it the name of the existing directory will convert it into a Source folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:10:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553646#M12863</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Include Directories</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553647#M12864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CLD on Fri Jul 23 06:35:24 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to use Drivers available in NXP website (&lt;/SPAN&gt;&lt;A href="http://"&gt;http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip&lt;/A&gt;&lt;SPAN&gt;) in my projetc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a folder called "Drivers" and copied all .h and .c to "Drivers/include" and "Drivers/source", respectively. I added include folder to "directories", inside MCU C Compiler in Prject Options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, got a lot of 'undefined reference to' to all "Driver" functions I used. What's wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:10:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553647#M12864</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Include Directories</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553648#M12865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by KaraMuraT on Fri Jul 23 07:36:31 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You also have to include the header files to required locations (probably to main.c). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#include "SomeDriverHeader.h"&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:10:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553648#M12865</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Include Directories</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553649#M12866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Sat Jul 24 00:54:50 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The correct answer to all these question should be RTFM (Read The Fancy Manual) but I found this a challenging task :eek:. We've got all these tools glued together; Eclipse, a build manager, a debugger, the GCC compiler/linker and who knows what else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do you look for the proper documentation ???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What rtos want is in fact to create a static library with the drivers and add this library to his application. There are a few easy steps how to do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[LIST=1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]Create a static library with the drivers (use the "Create C static library project" from the "Project and File wizards") and add your C driver files to this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is the easiest way to start your driver library&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]Add the include directory of the driver (project) to your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this makes the .h files visible during compilation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[*]Add the library to your application (you need to specify both the path to the library and the library name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This tells the linker to add the library to the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/LIST]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: I added a .pdf document giving some more instructions for step 2 and 3. Unfortunately it is not allowed to add decent sized pdfs so I had to zip it ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:10:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Include-Directories/m-p/553649#M12866</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:10:55Z</dc:date>
    </item>
  </channel>
</rss>

