How to add a library to an Eclipse project

Solution 1:

right click to project -> Properties -> C/C++ Build, go to Library and add it there.

if the library is libgdi32.a, you should add gdi32 in the library section.

Solution 2:

If on eclipse 3.5 the place to add is project->properties->C++ Build->Settings Then choose the tool chain you are using then in Libraries and add the library name to the top box and the path to the bottom