CDT linker error with cmake-generated project [message #1791438] |
Fri, 29 June 2018 10:29 |
harry boose 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!
|
|
|
Powered by
FUDForum. Page generated in 0.02513 seconds