Very simple application fails with “multiple target patterns” from Eclipse

前端 未结 9 943
-上瘾入骨i
-上瘾入骨i 2020-12-01 21:33

Since I\'m more comfortable using Eclipse, I thought I\'d try converting my project from Visual Studio. Yesterday I tried a very simple little test. No matter what I try,

9条回答
  •  长情又很酷
    2020-12-01 22:21

    Looks like there is a simple way to solve this. Just change the "Current Builder" from "GNU Make Builder" to "CDT Internal Builder" in Project properties->C/C++ Builder->Tool Chain Editor->Current Builder will do.

    To me, this problem is caused by the automatically generated "XXX.d" dependency files in Debug directory (or release :), which were generated by gcc -MF as a side-effect to gcc -c. But GNU make obviously forgot to add quotations around file names when -MF.

    "CDT Internal Builder" does not use makefile nor GNU make at all. Eclipse manage the build process itself.

    If you insist to use GNU make, this doesn't work

提交回复
热议问题