Skip to main content



      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] Thu, 21 May 2020 22:09 Go to next message
Eclipse UserFriend
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 05:26 Go to previous messageGo to next message
Eclipse UserFriend
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 11:03 Go to previous message
Eclipse UserFriend
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 11:03] by Moderator

Previous Topic:Is this a bug or is there a better workaround?
Next Topic:CDT indexer on big cmake project
Goto Forum:
  


Current Time: Sat Jul 05 02:47:31 EDT 2025

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

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

Back to the top