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

前端 未结 9 960
-上瘾入骨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:13

    I also had the problem of multiple target patterns reported by make when using eclipse on windows/cygwin. I solved the problem as suggested above by using only relative paths. I didn't realize that I had absolute paths, but when I specified an include directory using the project directory, eclipse expanded it into the full path.

    For instance, if you add a path relative to the workspace, eclipse generates ""${workspace_loc:/include}"" which will expand to something starting with "c:\". This is why it was happening in my case.

    I simply replaced the complex string above with "../../include" and it solved my problem.

提交回复
热议问题