NetBurner 3.5.0
PDF Version
 
Add a Library to a Project

NBEclipse includes the most common libraries by default. However, there are times you will need to tell the build system to include additional libraries, such as if your application uses the Embedded Flash File System (EFFS) for flash memory cards, in which case you need to add the FatFile library.

Note: If you are building a project that uses EFFS functions, and have not added the FatFile library, you will see many link errors for functions that start with f_ and fm_.

To add a library:

  • In NBEclipse, right-click on your project, and select "Properties".
  • Select "C/C++ Builds -> Settings" on the left-hand side.
  • Select "GNU C/C++ Linker -> Libraries" under the "Tool Settings".
  • In the "Libraries" list box, add "FatFile" by using the add icon in top-right corner of the list.
  • In the "Libraries Search Path" list box, add the path to the library. For example, for MOD5441x device, the path is: \nburn\platform\MOD5441X\original\lib. Note: the naming convention for gcc is as follows: the name of the library is actually libFatFile.a, but in the Libraries entry box you only use what comes after "lib" and do not use the .a suffix. In this case, we just use "FatFile".
Note
The other common library to add is the EFFS-STD library: StdfFile. EFFS-FAT is a FAT32 library for flash memory cards. EFFS-STD is used to create a file system in the flash memory chip on the device.