Eclipse + CDT + Cygwin: How do you fix the Multiple Goals error?

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:

# NOTE: Error happens when the first "C:/" occurs
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? , ?

* *

,

+5
3

, " " GNU Make, Cygwin. GNU Make 3.8.1 - GNU Make, Cygwin.

GNU Make 3.8.1 Windows, "C: \". , make "C: \", " ".

, , - GNU Make v3.8.1. . Here1 Here2. Eclipse + CDT + Cygwin .

(05--2015): cygwin Make (4.0.x) . https://superuser.com/questions/154418/where-do-i-get-make-for-cygwin

+3

. , . . .

0

eclipse/CDT Juno cygwin

, :

3.80-1 , cygintl-2.dll. make3.80-1

http://www.filewatcher.com/m/make-3.80-1.tar.bz2.286814-0.html

Dll

http://www.dllguru.com/cygintl-2.dll.html -

make cygwin/bin, makeVersion, . make3.82.90

cygintl-2.dll cygwin/bin

eclipse,

Gerdi

0

All Articles