Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add library to C/c++ eclipse indigo project

Tags:

c++

c

eclipse

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

like image 587
Keira Shaw Avatar asked Feb 22 '26 01:02

Keira Shaw


1 Answers

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.

like image 85
david Avatar answered Feb 24 '26 13:02

david



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!