<?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>S32 SDK中的主题 Include unistd.h file</title>
    <link>https://community.nxp.com/t5/S32-SDK/Include-unistd-h-file/m-p/724828#M252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to include unistd.h file in my project. This is arch specific file, present at location&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\NXP\S32DS_Power_v1.2\Cross_Tools\powerpc-eabivle-4_9\powerpc-eabivle\include\sys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried checking in sdks and project properties, but nno luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one s32 expert help me in including this file and successfully compiling the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the screenshot of include files in my project&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/401iF6B0BF86AD735E62/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;build error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building target: SPWM_Shift_Z7_0.elf&lt;BR /&gt;Executing target #12 SPWM_Shift_Z7_0.elf&lt;BR /&gt;Invoking: Standard S32DS C Linker&lt;BR /&gt;powerpc-eabivle-gcc -o "SPWM_Shift_Z7_0.elf" "@SPWM_Shift_Z7_0.args" &lt;BR /&gt;./src/main_Z7_0.o: In function `main':&lt;BR /&gt;C:\Users\ox172\Documents\Workspace\SPWM_Shift_Z7_0\Debug/../src/main_Z7_0.c:168: undefined reference to `usleep'&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [SPWM_Shift_Z7_0.elf] Error 1&lt;/P&gt;&lt;P&gt;16:54:25 Build Finished (took 4s.706ms)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2018 11:30:47 GMT</pubDate>
    <dc:creator>vrushalitaklika</dc:creator>
    <dc:date>2018-03-22T11:30:47Z</dc:date>
    <item>
      <title>Include unistd.h file</title>
      <link>https://community.nxp.com/t5/S32-SDK/Include-unistd-h-file/m-p/724828#M252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to include unistd.h file in my project. This is arch specific file, present at location&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\NXP\S32DS_Power_v1.2\Cross_Tools\powerpc-eabivle-4_9\powerpc-eabivle\include\sys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried checking in sdks and project properties, but nno luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one s32 expert help me in including this file and successfully compiling the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the screenshot of include files in my project&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/401iF6B0BF86AD735E62/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;build error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building target: SPWM_Shift_Z7_0.elf&lt;BR /&gt;Executing target #12 SPWM_Shift_Z7_0.elf&lt;BR /&gt;Invoking: Standard S32DS C Linker&lt;BR /&gt;powerpc-eabivle-gcc -o "SPWM_Shift_Z7_0.elf" "@SPWM_Shift_Z7_0.args" &lt;BR /&gt;./src/main_Z7_0.o: In function `main':&lt;BR /&gt;C:\Users\ox172\Documents\Workspace\SPWM_Shift_Z7_0\Debug/../src/main_Z7_0.c:168: undefined reference to `usleep'&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [SPWM_Shift_Z7_0.elf] Error 1&lt;/P&gt;&lt;P&gt;16:54:25 Build Finished (took 4s.706ms)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 11:30:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Include-unistd-h-file/m-p/724828#M252</guid>
      <dc:creator>vrushalitaklika</dc:creator>
      <dc:date>2018-03-22T11:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Include unistd.h file</title>
      <link>https://community.nxp.com/t5/S32-SDK/Include-unistd-h-file/m-p/724829#M253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the unistd.h header contains only function declaration without implementation (the implementation is target MCU specific). If you need usleep function - you need to write your own implementation for your MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:49:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/Include-unistd-h-file/m-p/724829#M253</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-03-22T13:49:22Z</dc:date>
    </item>
  </channel>
</rss>

