Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCDT linker error with cmake-generated project
https://www.eclipse.org/forums/index.php/mv/msg/1091360/1780778/#msg_1780778
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!]]>Oscar Kramer2018-01-26T23:44:41-00:00