Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Build issue with static libraries(Eclipse Build issue with unresolved library fucntions)
Build issue with static libraries [message #1259954] Sat, 01 March 2014 00:16 Go to next message
michael schmid is currently offline michael schmidFriend
Messages: 4
Registered: November 2013
Junior Member
First let me say I can build my project using the same Linaro GCC eabi tools chain without this issue, when invoking the build process from the command line. Also I should mention that libraries are static libraries.

My issue is when I try to build from within Eclipse ( using external Linaro GCC non-linux) for some reason the linker reports undefined procedure library names (symbols). The procedures that are giving me issues are called from another library, I do have the link order correct and set the same as when I build outside of eclipse. I even went so far as to use --start-group with --end-group options for both of the dependent libraries still no luck.

What I eventually had to do was add the linker option --whole-archive when I build from Eclipse, but this is not required when I build the project from the command line make.

Does Someone understand why I need to do this?

It took 2.5 days to figure out this solution.
Re: Build issue with static libraries [message #1260251 is a reply to message #1259954] Sat, 01 March 2014 08:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Michael,

It's best to ask CDT questions on the specialized CDT forum.

On 01/03/2014 9:16 AM, michael schmid wrote:
> First let me say I can build my project using the same Linaro GCC eabi
> tools chain without this issue, when invoking the build process from
> the command line. Also I should mention that libraries are static
> libraries.
>
> My issue is when I try to build from within Eclipse ( using external
> Linaro GCC non-linux) for some reason the linker reports undefined
> procedure library names (symbols). The procedures that are giving me
> issues are called from another library, I do have the link order
> correct and set the same as when I build outside of eclipse. I even
> went so far as to use --start-group with --end-group options for both
> of the dependent libraries still no luck.
> What I eventually had to do was add the linker option --whole-archive
> when I build from Eclipse, but this is not required when I build the
> project from the command line make.
>
> Does Someone understand why I need to do this?
>
> It took 2.5 days to figure out this solution.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Build issue with static libraries [message #1260759 is a reply to message #1260251] Sat, 01 March 2014 21:54 Go to previous message
michael schmid is currently offline michael schmidFriend
Messages: 4
Registered: November 2013
Junior Member
Ed thanks didn't know there was a CDT forum I'll repost there.
Previous Topic:unresolved inclusions
Next Topic:LTTng Integration with Eclipse
Goto Forum:
  


Current Time: Fri Mar 29 10:49:19 GMT 2024

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

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

Back to the top