Include custom libraries

General questions regarding the usage of CodeLite
CésarNoll
CodeLite Curious
Posts: 3
Joined: Fri Oct 10, 2014 3:29 am
Genuine User: Yes
IDE Question: C++
Contact:

Include custom libraries

Post by CésarNoll »

Hello!

I would like to know how do I include new libraries. I'm new at CodeLite and I want to include my SFML library, but I don't know how to use it (I mean the procedure).

Thanks for help!
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Include custom libraries

Post by DavidGH »

Hi,

Have a look at the 'linker' section of this doc page. The screenshots are from an old CodeLite version and the current version looks different; but it should give you an idea of what you need to do.

Regards,

David
CésarNoll
CodeLite Curious
Posts: 3
Joined: Fri Oct 10, 2014 3:29 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Include custom libraries

Post by CésarNoll »

It didn't help me much... :-/
Gibbon1
CodeLite Expert
Posts: 167
Joined: Fri Jul 22, 2011 5:32 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Include custom libraries

Post by Gibbon1 »

Highlight the project in the workspace view, right click on the project in the workspace tab and select settings -> linker

Note the libraries search path and the libraries. Add the path to the library and the name of the library. Try compiling, note the build window shows you the output of the build process. Can be helpful for figuring out why things don't work.

Remember there is codelite which is an editor/IDE and then there is the tool chain. make, compiler and linker. Any errors you see are usually from those tools.
proj_setting.png
You do not have the required permissions to view the files attached to this post.
Post Reply