Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » tries to link in object files twice(tries to link in object files twice)
tries to link in object files twice [message #1827733] Fri, 22 May 2020 02:09 Go to next message
Russ Monckton is currently offline Russ MoncktonFriend
Messages: 2
Registered: May 2020
Junior Member
When linking the project, object files are include in the build twice. Once in the src\... and once in ..\release\src\... So if there is a file webapp.cpp the link command line as src\webapp.o and ..\rel;ease\src\webapp.o

Obviously this results in many duplicate symbols and such.

It looks like this comes from the macro ${INPUTS} containing twice the necessary information.

No amount of "cleaning" or deleting of objects fixes this.

The project use to build.

Re: tries to link in object files twice [message #1827741 is a reply to message #1827733] Fri, 22 May 2020 09:26 Go to previous messageGo to next message
David VavraFriend
Messages: 1112
Registered: October 2012
Senior Member
I think you messed up the build configurations.
I presume files in src\* and release\src\* were meant to be different build configurations.
Did you really want debug\src\* instead of just src\*?

Create a new HelloWorld project and build the Debug and Release configurations to see what was expected.
Re: tries to link in object files twice [message #1827758 is a reply to message #1827733] Fri, 22 May 2020 15:03 Go to previous message
Russ Monckton is currently offline Russ MoncktonFriend
Messages: 2
Registered: May 2020
Junior Member
I was able to get things back to normal by:
1. exiting Eclipse
2. removing the ..\release directory tree
3. recreating the ..\release directory tree
4. restarting Eclipse
5. performing a "Refresh" option on the project
6. doing a "Clean Project"
7. doing a "Build Project"

Now, the project builds as one would expect.

[Updated on: Fri, 22 May 2020 15:03]

Report message to a moderator

Previous Topic:Is this a bug or is there a better workaround?
Next Topic:Code block editing
Goto Forum:
  


Current Time: Tue May 26 13:52:11 GMT 2020

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

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

Back to the top