Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT linker error with cmake-generated project
CDT linker error with cmake-generated project [message #1791438] Fri, 29 June 2018 10:29
harry boose is currently offline harry booseFriend
Messages: 1
Registered: June 2018
Junior Member
I have been working fine for years on a project until today after updating plugins in eclipse 4.7.2. I reverted the updates but still have problems.

I'm using cmake to generate the eclipse project files. If I import that project into eclipse as "General->existing project into workspace" and try to build, I get the error "collect2: fatal error: cannot find 'ld' " when the link happens. If instead I import the project as "C++ existing code as Makefile project", everything builds fine.

I can build from the command line using the same Makefiles with no problem. The error "cannot find 'ld' " is weird because "which ld" gives /usr/bin/ld.

It is something specific associated with the cmake-generated project files that is causing gcc to not find ld. Any ideas please? I've been battling this all day!
Previous Topic:Arduino C++ can't use functions? duplicate
Next Topic:ARM GNU eclipse plugin reg
Goto Forum:

Current Time: Thu Sep 20 02:56:06 GMT 2018

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

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

Back to the top