3.3.3.2 Create a New Library Project

  1. Create a new project by selecting New Project from the Project menu, which will open the Project Wizard.
    Figure 3-34. New XC8 Library Project
  2. Select C/C++XC8 C Library Project as a template, specify a project name, select a location, and provide a solution name. A source file with an empty myfunc() function will be added to the project by default. Press OK to proceed.
  3. A device selection dialog will appear. Choose the appropriate target device for your project.
    Figure 3-35. Device Selection Dialog
  4. Click OK to create the XC8 C Library project.
  5. Right click on the project node and select ‘Build’ to build the project.