简体   繁体   English

将库添加到C / c ++ eclipse indigo项目中

[英]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: 我试图通过以下过程向Eclipse的C / C ++项目添加库:

  1. Properties->C/C++General->includes (within includes specifying the folder in which the library is kept). 属性 - > C / C ++一般 - >包含(包括指定保存库的文件夹)。
  2. Properties->C/C++General->Library Paths (Specifying the library paths of .so and .a files) Properties-> C / C ++ General-> Library Paths(指定.so和.a文件的库路径)
  3. Properties->C/C++General->Libraries (Specifying adding paths of .so and .a files) Properties-> C / C ++ General-> Libraries(指定.so和.a文件的添加路径)

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? 有人可以告诉我错误在哪里吗?

在此输入图像描述

A similar question was posted here . 这里也发布类似的问题。 You need to add the libraries in the Properties -> C/C++ -> Build area, not the General area. 您需要在Properties - > C / C ++ - > Build区域中添加库,而不是General区域。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM