Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Adding external static library to C project(How to add an external library to my C project and use its functions?)
Adding external static library to C project [message #1769765] Thu, 03 August 2017 09:06 Go to next message
Mahmoud Mahdi is currently offline Mahmoud MahdiFriend
Messages: 6
Registered: August 2017
Junior Member
I've been working on a project for embedded system and it needs SSL/TLS functionality.

I downloaded SSL project from GitHub (WolfSSL to be specific), compiled it with autotools, then created a static library libwolfssl.a using ar from libtools which archived all the .o files

I need to use the functions implemented in WolfSSL in my code, for example SSL_Library_Init()

How can I add the static library and use the functions using Eclipse IDE ?

I tried the following:

Added library path to the C linker -L: ${workspace_loc:/${ProjName}/lib}
Added library name to -l : wolfssl where the library name is libwolfssl.a
When I try to build the project, anything related to SSL is not recognized yet, ex: SSL_Library_Init and so on
Is this the correct way to do this?
Re: Adding external static library to C project [message #1769785 is a reply to message #1769765] Thu, 03 August 2017 12:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
It's probably best to ask about C/C++ related things on the CDT forum.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Adding external static library to C project [message #1769788 is a reply to message #1769785] Thu, 03 August 2017 12:03 Go to previous messageGo to next message
Mahmoud Mahdi is currently offline Mahmoud MahdiFriend
Messages: 6
Registered: August 2017
Junior Member
Thank you, can this post be moved or something?
Re: Adding external static library to C project [message #1769817 is a reply to message #1769788] Thu, 03 August 2017 16:27 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
I don't know how to do that. Reposting is okay.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Getting translation unit from a CDT Project
Next Topic:Building remote connection x86 to ARM (Raspberry Pi)
Goto Forum:
  


Current Time: Fri Mar 29 12:16:47 GMT 2024

Powered by FUDForum. Page generated in 0.05175 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top