Search code examples
c++eclipsecygwin

Eclipse with CDT not compiling at all


I have been trying out using Eclipse CDT for a course I am taking.
Previously I have been using Visual Studio Express but since that requires me to be online and I have to use the IDE+compiler offline, I switched to Eclipse + Cygwin GCC.

Now everything was working prefectly, until I got an error about file paths in my make file. After reading some of the posts online, the issue seemed to be that Cygwin's make does not resolve absolute Windows file paths because of the ':' symbol and confuses it with a new target definition. The proposed fix was to download a fixed make file. I diligently did so and the programs would compile fine.

But after I went into the first debug session, everything froze. I aborted eclipse and tried a clean build but now the compilation wont happen AT ALL, which is very weird for me.

I can't find a post for a similar problem so I am really stuck now. I was currently working the assumption that my CDT may be corrupt or something so I downloaded Eclipse Luna just today and tried building using that, but no joy. Even a fresh project in a new workspace wont compile.

Appreciate the help in advance.


Solution

  • So it seems like an issue with the new make (v3.80). upgating it to v4.08 fixed the issue of not building.

    Version 4.08 however does not fix the Windows file paths not being recognized properly and treated as a target definition. I am still getting the multiple target patterns. stop error.

    EDIT: Found this on Stack overflow to solve the issue... should have searched better previously.

    Very simple application fails with "multiple target patterns" from Eclipse