How do i add libraries to CodeLite projects?

我与影子孤独终老i 提交于 2019-12-30 04:57:06

问题


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 ?


回答1:


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:

  • 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

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

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



来源:https://stackoverflow.com/questions/34121370/how-do-i-add-libraries-to-codelite-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!