Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » static library artifact extension .a additionally added
static library artifact extension .a additionally added [message #1849106] Tue, 04 January 2022 10:49 Go to next message
Alexander Brand is currently offline Alexander BrandFriend
Messages: 3
Registered: January 2022
Junior Member
Hi,

i have a strange problem with a static library C project. The builder always adds a .a extension to the name of the library.

as u can see in the attached picture the settings for build artifact are fairly standard and it works for my other colleagues, but on my installation of 2021-12
it generates a library called libshared.a.a with these settings. If i set the artifact extension to ext then the name of the genereated file is libshared.ext.a.

Can anybody point me to where this extra .a is comming from. My colleagues run exactly the same eclipse version and plugin versions.

Thanks in advance.
Re: static library artifact extension .a additionally added [message #1849513 is a reply to message #1849106] Sat, 22 January 2022 17:27 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
-lxxx is shorthand for libxxx.a

[Updated on: Sat, 22 January 2022 17:29]

Report message to a moderator

Re: static library artifact extension .a additionally added [message #1849531 is a reply to message #1849513] Mon, 24 January 2022 08:03 Go to previous messageGo to next message
Alexander Brand is currently offline Alexander BrandFriend
Messages: 3
Registered: January 2022
Junior Member
yes of course, thats my problem. In the processes using the library there is
-lshared set. So the linker expects a file named libshared.a thats true. But the library project in eclipse cdt is build as libshared.a.a with the build artifact settings i posted which is just wrong. But thats only the case for me using the project not for other people in the team using the project. So it must be some eclipse setting or strange version. Thats why i'm asking if anyone knows help.
Re: static library artifact extension .a additionally added [message #1849706 is a reply to message #1849531] Sun, 30 January 2022 18:59 Go to previous messageGo to next message
Alex Freidin is currently offline Alex FreidinFriend
Messages: 32
Registered: July 2009
Member
In version 2020-09 it shows "a" without the dot in Build Artifact > Artifact Extension (and builds OK).
Re: static library artifact extension .a additionally added [message #1849717 is a reply to message #1849706] Mon, 31 January 2022 07:35 Go to previous message
Alexander Brand is currently offline Alexander BrandFriend
Messages: 3
Registered: January 2022
Junior Member
Hi,

i use 2021-12 but my colleagues use the same version. so i dont expect it to be a code related issue its more a configuration/workspace issue. But i have no clue where to look at. I try a cempletely new workspace but that did change the problem.
Previous Topic:assembly ide
Next Topic:Eclipse with ESP32 4.4 Plugin
Goto Forum:
  


Current Time: Thu Apr 25 15:11:54 GMT 2024

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

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

Back to the top