UPDATE 1: My original post was too long and hid the real problem. I discovered exactly what causes the "Multiple Targets" error when Make is called.
UPDATE 2: I found out that the "Multiple Targets" error was caused by GNU Make version 3.8.1 (see here1 and here2 ). GNU Make 3.8.1 is the current GNU Make released with Cygwin. To summarize the link: old v3.8.0 processed Windows paths are fine, and new v3.8.1 report errors for window paths (maybe this is a passive aggressive hit from FSF?).
When you start a new project in Eclipse + CDT + Cygwin without external inclusions / libraries, everything works fine for me.
As soon as I try to use an external include / library, I get a "Multiple targets" error.
Here are the steps necessary to reproduce the error in Windows + Eclipse + CDT + Cygwin:
- Project Project Properties → C / C ++ Build → Settings → Tool Settings → Cygwin C Compiler → Includes → Include Paths (-I) → Add Button → Select directory → “C: \ dir1 \ dir2”
- I hit the assembly.
- It is created without errors for the first time.
- I hit the assembly again ... I get the "Multiple Targets. Stop" assembly errors.
- I click on the error.
Eclipse pulls out a makefile. The error occurs when make sees the path for a new include file from an external library:
src/main.d src/main.o: ../src/main.c C:/dir1/dir2/ExternalLibrary.h
" " , ":", Make . ":", , , " ".
make , [UPDATE: Eclipse-CDT]. , make .
- , Eclipse "C: \"? make "C: \"?
- Eclipse + CDT + Cygwin?
- Eclipse + CDT + Cygwin..., , ( Visual Studios...)! , Eclipse + CDT + cygwin? , ?
* *
,