How to create and use C-libraries in Netbeans
To create a new project for a C-library, apply the following steps:- Create the necessary directories and prepare a suitable Makefile.
- Start netbeans and use File-> New Project . Select C/C++ as category, and "C/C++ Project From Existing Code" and proceed to the next screen.
-
Select "Using an existing makefile" and enter the name of the existing makefile in the corresponding text box. The screen should look like
.
Proceed to the next screen. - The values in the text boxes for this screen which is labelled "Build Actions" are OK. Proceed to the next screen.
-
In this screen labelled "Source Files" make sure that the appropriate Source File Folders and subfolders are listed. The screen should look like

Proceed to the next screen. - All the setting in this screen labelled "Code Assistance Configuration" are OK. Proceed to the next screen.
- In this screen labelled "Project Name and Location" choose a suitable name for the project. Close this screen.
-
Select File-> Project Properties and select Run as the category. Click on the button to the right of the Environment-entry and add the environment variable LD_LIBRARY_PATH with the value <dir> being the directory where the code for the libraries is stored. The result should look like