且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在我的Eclipse C ++项目中包括静态链接库?

更新时间:2023-10-23 11:21:46

右键单击项目浏览器中的项目名称打开项目,选择项目属性。然后选择C / C ++ General - >路径和符号 - > includes - > GNU C ++并将路径添加到头文件。你应该对你的库做同样的:C / C ++通用 - >路径和符号 - >库 - >添加,并添加你的库文件路径。

right click on the project name in the project explorer with the project being opened, select project properties. Then select C/C++ General -> Paths and Symbols -> includes -> GNU C++ and add the path to your header file. You should do the same for you library under : C/C++ General -> Paths and Symbols -> Libraries -> Add , and add your library file path.