<?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 FAQsのトピックHow include paths work</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/How-include-paths-work/m-p/470568#M62</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you add a directory under the "Directories" section of the compiler, you are setting the compilers "-I" option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"-I" adds a directory to the compiler search path for include files. When the compiler tries to locate header files, it will search each directory in the search path for the exact filename provided in the #include directive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if your project contains the following directory structure (at the root of the project):&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 12px; padding: 5px 10px; background: #eeeeee;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;TT&gt;my_headers&lt;BR /&gt;&amp;nbsp; my_header.h&lt;BR /&gt;&amp;nbsp; sub_dir&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my_sub_header.h&lt;/TT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can add the following to the "Directories" compiler setting&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"../my_headers" ('../' is required as projects are built in a subdirectory of the project root)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In your source, you can:&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 12px; padding: 5px 10px; background: #eeeeee;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;TT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "my_header.h"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "sub_dir/my_sub_header.h"&lt;/TT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can add the following to the "Directories" compiler setting&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"../my_headers"&lt;/LI&gt;&lt;LI&gt;"../my_headers/sub_dir" ('../' is required as projects are built in a subdirectory of the project root)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In your source, you can:&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 12px; padding: 5px 10px; background: #eeeeee;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;TT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "my_header.h"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "my_sub_header.h"&lt;/TT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In LPCXpresso IDE, you can specify Include and Library paths as:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;absolute paths&lt;UL&gt;&lt;LI&gt;&lt;TT&gt;e.g. c:/path/to/directory&lt;/TT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;relative paths&lt;UL&gt;&lt;LI&gt;&lt;TT&gt;e.g. ../relative/directory&lt;/TT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;workspace path&lt;UL&gt;&lt;LI&gt;&lt;TT&gt;e.g. ${workspace_loc:/project/path}&lt;/TT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;path based on an environment variable&lt;UL&gt;&lt;LI&gt;&lt;TT&gt;e.g. ${env_var:ENVIRONMENT_VARIABLE}/path&lt;/TT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; You should take care to always use forward slashes in paths specifications even when working under Windows, i.e. use / not \ .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 19:40:54 GMT</pubDate>
    <dc:creator>lpcware-support</dc:creator>
    <dc:date>2016-03-31T19:40:54Z</dc:date>
    <item>
      <title>How include paths work</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/How-include-paths-work/m-p/470568#M62</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you add a directory under the "Directories" section of the compiler, you are setting the compilers "-I" option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"-I" adds a directory to the compiler search path for include files. When the compiler tries to locate header files, it will search each directory in the search path for the exact filename provided in the #include directive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if your project contains the following directory structure (at the root of the project):&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 12px; padding: 5px 10px; background: #eeeeee;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;TT&gt;my_headers&lt;BR /&gt;&amp;nbsp; my_header.h&lt;BR /&gt;&amp;nbsp; sub_dir&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my_sub_header.h&lt;/TT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can add the following to the "Directories" compiler setting&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"../my_headers" ('../' is required as projects are built in a subdirectory of the project root)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In your source, you can:&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 12px; padding: 5px 10px; background: #eeeeee;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;TT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "my_header.h"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "sub_dir/my_sub_header.h"&lt;/TT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can add the following to the "Directories" compiler setting&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"../my_headers"&lt;/LI&gt;&lt;LI&gt;"../my_headers/sub_dir" ('../' is required as projects are built in a subdirectory of the project root)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In your source, you can:&lt;/P&gt;&lt;P style="color: #646464; font-family: Arial, sans-serif; font-size: 12px; padding: 5px 10px; background: #eeeeee;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;TT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "my_header.h"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "my_sub_header.h"&lt;/TT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In LPCXpresso IDE, you can specify Include and Library paths as:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;absolute paths&lt;UL&gt;&lt;LI&gt;&lt;TT&gt;e.g. c:/path/to/directory&lt;/TT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;relative paths&lt;UL&gt;&lt;LI&gt;&lt;TT&gt;e.g. ../relative/directory&lt;/TT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;workspace path&lt;UL&gt;&lt;LI&gt;&lt;TT&gt;e.g. ${workspace_loc:/project/path}&lt;/TT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;path based on an environment variable&lt;UL&gt;&lt;LI&gt;&lt;TT&gt;e.g. ${env_var:ENVIRONMENT_VARIABLE}/path&lt;/TT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; You should take care to always use forward slashes in paths specifications even when working under Windows, i.e. use / not \ .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 19:40:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/How-include-paths-work/m-p/470568#M62</guid>
      <dc:creator>lpcware-support</dc:creator>
      <dc:date>2016-03-31T19:40:54Z</dc:date>
    </item>
  </channel>
</rss>

