Skip to main content



      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 05:49 Go to next message
Eclipse UserFriend
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 12:27 Go to previous messageGo to next message
Eclipse UserFriend
-lxxx is shorthand for libxxx.a

[Updated on: Sat, 22 January 2022 12:29] by Moderator

Re: static library artifact extension .a additionally added [message #1849531 is a reply to message #1849513] Mon, 24 January 2022 03:03 Go to previous messageGo to next message
Eclipse UserFriend
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 13:59 Go to previous messageGo to next message
Eclipse UserFriend
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 02:35 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 07:27:57 EDT 2025

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

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

Back to the top