2.10.2 Including libraries in projects

CodeBlocks

[Contents] CodeBlocks Manual   [Search] Search

[Table of contents]

2.10.2 Including libraries in projects


LibFinder adds extra tab in Project Properties ’Libraries’ - this tab shows libs used in project and libs known in LibFinder. To add library into your project, select it in right pane and click < button. To remove library from project, select it on the left pane and click > button (see Figure 2.12).

[Figure # 39]
Figure 2.12: Project configuration

You can filter libraries known to LibFinder by providing search filter. The ’Show as Tree’ checkbox allows to switch between categorized and uncategorized view.
If you want to add library which is not available in LibFinder’s database, you may use ’Unknown Library’ field. Note that you should enter library’s shortcode (which usually matches global variable name) or name of library in pkg-config. List of suggested shortcodes can be found at [Internet] Global Variables. Using this option is recommended only when preparing project to be built on other machines where such library exists and is properly detected by LibFinder. You can access a global variable within CodeBlocks like:
  $(#GLOBAL_VAR_NAME.include)
Checking the ’Don’t setup automatically’ option will notify LibFinder that it should not add libraries automatically while compiling this project. In such case, LibFinder can be invoked from build script. Example of such script is generated and added to project by pressing ’Add manual build script’ .


[Previous] 2.10.1  Searching for libraries
[Next] 2.10.3  Using LibFinder and projects generated from wizards

Created: 2010/25/05 11:52   Updated: 2010/25/05 11:52
Author: HighTec EDV-Systeme GmbH
Copyright © 2010 HighTec EDV-Systeme GmbH