<?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>CodeWarrior for MCUのトピックRe: Creating libraries</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Creating-libraries/m-p/1179829#M15495</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use Codewarrior create your own lib file. To create .lib file, you need follow the steps below.(please also refer the attached mylib project)&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Create one project with wizard.(I use QG8 as target chip)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;change the file name main.c as the lib name (in sample is mylib.c)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;define the lib functions in mylib.c&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;add header file mylib.h in the project, and declare the prototype of the lib functions in it.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;add “#include mylib.h” in&amp;nbsp; mylib.c&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;delete the following files from the project: start08.c, derivative.h, *.prm, MC9S08QG8.h, MC9S08QG8.c, ansiis.lib.c&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Press ALT+F7, in “Target Setting”, select “Libmaker for HC08” as Linker in the second droplist. In “Libmaker for HC08”, name your Library Filename.(the sample use mylib.lib), Click OK to close this window.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Compile again. In “bin” folder of the lib project, you could find the lib file named “mylib.lib”&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The following is how to use the lib file in the project:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;copy “mylib.lib” and “mylib.h” to your current project folder.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;import “mylib.lib” and “mylib.h” in your current project&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;add “#include "mylib.h"”in the main.c file&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;then you can use the lib functions in your current project code. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I hope this information is helpful to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2020 03:51:53 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2020-11-09T03:51:53Z</dc:date>
    <item>
      <title>Creating libraries</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Creating-libraries/m-p/1178108#M15491</link>
      <description>&lt;P&gt;Can anyone direct me to a comprehensive set of instructions for creating libraries and using them in a project. I am using CW 11.1 for S08 processors. I have a number of projects, all of which have a significant amount of common source code. All the articles that I have found are VERY old (V5) and bear no relationship to the latest version.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 18:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Creating-libraries/m-p/1178108#M15491</guid>
      <dc:creator>juliancox</dc:creator>
      <dc:date>2020-11-04T18:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating libraries</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Creating-libraries/m-p/1179829#M15495</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use Codewarrior create your own lib file. To create .lib file, you need follow the steps below.(please also refer the attached mylib project)&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Create one project with wizard.(I use QG8 as target chip)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;change the file name main.c as the lib name (in sample is mylib.c)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;define the lib functions in mylib.c&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;add header file mylib.h in the project, and declare the prototype of the lib functions in it.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;add “#include mylib.h” in&amp;nbsp; mylib.c&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;delete the following files from the project: start08.c, derivative.h, *.prm, MC9S08QG8.h, MC9S08QG8.c, ansiis.lib.c&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Press ALT+F7, in “Target Setting”, select “Libmaker for HC08” as Linker in the second droplist. In “Libmaker for HC08”, name your Library Filename.(the sample use mylib.lib), Click OK to close this window.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Compile again. In “bin” folder of the lib project, you could find the lib file named “mylib.lib”&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The following is how to use the lib file in the project:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;copy “mylib.lib” and “mylib.h” to your current project folder.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;import “mylib.lib” and “mylib.h” in your current project&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;add “#include "mylib.h"”in the main.c file&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;then you can use the lib functions in your current project code. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I hope this information is helpful to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 03:51:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Creating-libraries/m-p/1179829#M15495</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2020-11-09T03:51:53Z</dc:date>
    </item>
  </channel>
</rss>

