Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse 2022-06; CDT adding libraries to build command twicew
Eclipse 2022-06; CDT adding libraries to build command twicew [message #1853338] Tue, 28 June 2022 12:25 Go to next message
John McCabe is currently offline John McCabeFriend
Messages: 228
Registered: July 2009
Senior Member
Hi,

Has anyone else noticed an issue in Eclipse 2022-06 (recently updated from 2022-03, so CDT 10.7.0.202206081808) where the build command is ending up with static libraries being added twice?

I've attached zip file that's got two projects in it. One is a static library project with just one class and a trivial function in it, the other is an executable just with main and some trivial code.

When I build it (using MinGW on Windows, v 11.2 I think), what I'm seeing it:

13:19:35 **** Incremental Build of configuration Debug for project ZZZStaticLibUser ****
Info: Internal Builder is used for build
g++ -std=c++17 "-IC:\\Workspace\\ZZZStaticLib" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\ZZZStaticLibUser.o" "..\\src\\ZZZStaticLibUser.cpp" 
g++ "-LC:\\Workspace\\ZZZStaticLib\\Debug" -o ZZZStaticLibUser.exe "src\\ZZZStaticLibUser.o" -lZZZStaticLib -lZZZStaticLib 

13:19:36 Build Finished. 0 errors, 0 warnings. (took 1s.569ms)


As you can see, there are two "-lZZZStaticLib" parameters on the command line.

I'm pretty sure this is a new thing.
Re: Eclipse 2022-06; CDT adding libraries to build command twicew [message #1854336 is a reply to message #1853338] Mon, 15 August 2022 07:42 Go to previous message
John Dallaway is currently offline John DallawayFriend
Messages: 14
Registered: July 2009
Junior Member
Bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=580286
Previous Topic:Programmatically enable "CDT Cross GCC Built-In Compiler Settings"
Next Topic:Backslash is added to drive letter in dependency files
Goto Forum:
  


Current Time: Thu Apr 25 21:13:13 GMT 2024

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

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

Back to the top