如何将库添加到CodeLite项目? [英] How do i add libraries to CodeLite projects?

查看:114
本文介绍了如何将库添加到CodeLite项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始使用CodeLite,因为我虽然它会是一个很棒的软件,但是我不知道如何向项目中添加库. 有人可以帮我吗?

I recently started using CodeLite since i though that it would be a great software, but i don't know how to add libraries to projects. Can anyone help me out ?

推荐答案

但是我不知道如何将库添加到项目中

but i don't know how to add libraries to projects

假设您要针对某些外部库进行编译和链接,则需要执行以下步骤:

Assuming that you want to compile and link against some external libraries, these are the steps you need:

  • 打开项目设置(右键单击项目->设置)->编译器->包含路径,然后在此处设置编译器可以找到您的.h文件的位置
  • 打开项目设置->链接器->库搜索路径,并在此处放置链接器可以找到库的位置(通常后缀.a.dll.so)
  • 打开项目设置->链接器->库,并在此处设置库名称,例如libMyFirstLib.a;libMySecondLib.a
  • Open your project settings (right click on the project->settings) -> Compiler -> Include Paths, and set here the location where the compiler can find your .h files
  • Open project settings->Linker->Libraries search path and place here the location where the linker can find the libraries (usually suffixed with .a, .dll, .so)
  • Open the project settings->Linker->Libraries and set here the library name, for example libMyFirstLib.a;libMySecondLib.a etc

您可以在此处找到更多信息: http://codelite.org/LiteEditor/ProjectSettings

You can find more info here: http://codelite.org/LiteEditor/ProjectSettings

屏幕截图已过时,但名称/字段相同

The screenshots are outdated, but the names / fields are the same

这篇关于如何将库添加到CodeLite项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆