Keira Shaw
Keira Shaw

Reputation: 261

Add library to C/c++ eclipse indigo project

I am trying to add a library to C/C++ project in Eclipse by the following procedure:

  1. Properties->C/C++General->includes (within includes specifying the folder in which the library is kept).
  2. Properties->C/C++General->Library Paths (Specifying the library paths of .so and .a files)
  3. Properties->C/C++General->Libraries (Specifying adding paths of .so and .a files)

But when I build the project,it is not able to find the path of header files that I am including in my project.

Can someone please tell me where the error is?

enter image description here

Upvotes: 3

Views: 6420

Answers (1)

david
david

Reputation: 580

A similar question was posted here. You need to add the libraries in the Properties -> C/C++ -> Build area, not the General area.

Hope this helps.

Upvotes: 1

Related Questions