Skip to main content



      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 05:06 Go to next message
Eclipse UserFriend
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 08:02 Go to previous messageGo to next message
Eclipse UserFriend
It's probably best to ask about C/C++ related things on the CDT forum.
Re: Adding external static library to C project [message #1769788 is a reply to message #1769785] Thu, 03 August 2017 08:03 Go to previous messageGo to next message
Eclipse UserFriend
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 12:27 Go to previous message
Eclipse UserFriend
I don't know how to do that. Reposting is okay.
Previous Topic:Getting translation unit from a CDT Project
Next Topic:Building remote connection x86 to ARM (Raspberry Pi)
Goto Forum:
  


Current Time: Sat Mar 15 01:46:22 EDT 2025

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

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

Back to the top